How to Protect your Python and R Machine Learning Code

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • What options do you have for distributing Python and R code and still keeping some control over the intellectual property (IP). In this video I look at some of the high level options, such as API's, Docker Images, Compiled code, and encryption. If there is interest I may follow this up with more technical low-level tutorials on how to protect code in Python.
    0:22 What code should you not share?
    0:55 Protecting machine learning code
    1:16 What are the parts of a model deploy
    1:40 Scoring code vs. training code
    2:44 What about lookup tables and other data?
    3:02 Deploy in the cloud or on the edge?
    3:12 Deploying behind an API
    4:28 Protecting access to the API
    4:50 Authentication and Throttling
    5:24 Advsarial Example Attack
    6:20 Edge Deployment
    7:50 Preventing copying and modification
    8:00 Compiled languages
    8:23 Does Docker offer protection?
    9:50 Protecting Binary files
    10:30 What about encryption?
    Complete Eaglesoft (ESI), C64 Cracking Group Intro
    • Eagle Soft Inc. [ESI] ...
    Follow Jeff Heaton/Subscribe:
    / heatonresearch
    github.com/jeffheaton
    / jeffheaton
    Support Me on Patreon: / jeffheaton
  • Věda a technologie

Komentáře • 22

  • @HeatonResearch
    @HeatonResearch  Před 3 lety +22

    Any interest in a video showing how to hide code in a Docker image? Maybe even a small competition to see how quickly someone can extract my code?

    • @howg3729
      @howg3729 Před 3 lety

      yes please. It would be also useful to learn how to defend model from adversarial and other type of attack techniques.

    • @monkyspnk777
      @monkyspnk777 Před 3 lety

      Do you have existing "how to" docker videos for python gpu learning ? I'm a relative newbie but have an nvidia gpu on a mac I want to get more out of.

    • @taiminyang4236
      @taiminyang4236 Před 3 lety

      Interested!

    • @fishermen708
      @fishermen708 Před 3 lety

      I do.

  • @f.r.2275
    @f.r.2275 Před 3 lety +2

    This channel is gold and Jeff’s book is even better. Thank you for sharing your knowledge

  • @MAl-bl3dq
    @MAl-bl3dq Před 3 lety +1

    Always, a joyful and fruitful time is the time that we take to listen to your splendid videos.

  • @maksymsurzhynskyi9946
    @maksymsurzhynskyi9946 Před 3 lety +2

    The question of security at the edge is really tough. Sometimes it's impractical or too time consuming to rewrite the whole Py code into a compiled language, but... you may rewrite core logic/functions and import them as binary modules to your main python code... just like Numpy and other similar libraries are written in C++ do

  • @monkyspnk777
    @monkyspnk777 Před 3 lety

    Such a great level of content!!!

  • @atepatty6216
    @atepatty6216 Před rokem

    This is very helpful. I have been scratching my head on how I can do this which is similar to you know when you package / compile your vb codes.

  • @PicaPauDiablo1
    @PicaPauDiablo1 Před 3 lety +5

    It's amazing how you can stay this awesome this long

  • @raghebalghezi9532
    @raghebalghezi9532 Před 3 lety +3

    You'll be surprised to know that even giants like Google makes the mistake of exposing their tflite models in some of their Android apps without protection.

  • @thrallion
    @thrallion Před 3 lety

    Great video!

  • @LiveNewsOfficials
    @LiveNewsOfficials Před 3 lety

    Good one

  • @jinidubin
    @jinidubin Před 8 měsíci

    There are different possibilities to compile the lython codes But Is there any way to protect/hide the trained model files like .pt,.hdf5etc

  • @Joseph-ws5de
    @Joseph-ws5de Před rokem

    Could you create more videos about this topic?

  • @seppel198021
    @seppel198021 Před 3 lety +1

    How about use R-Shiny package for R and Provide a simple Frontend. No Code or coefficients visible. The User Just Uploads Data and clicks Buttons. P.S. pretty cool you cracked Games!

  • @ccn4709
    @ccn4709 Před 3 lety +1

    Hey Jeff, is there any way to swap clothes from lean body to fat one in the same way it happens on e-commerce sites

    • @HeatonResearch
      @HeatonResearch  Před 3 lety +1

      I have not specifically tried that, but I am guessing some sort of adjustment of GAN latent space.

  • @__--JY-Moe--__
    @__--JY-Moe--__ Před 3 lety

    Oh my goodness! would U listen 2 this!! woohoo!! U'r gett'n in2 the mud bruh!! yup!! piracy, is like a bag of chips! can a pirate, eat just 1?? sure!!
    great vid!! super important!! NN prog's, could be the next baby!! good luck....