在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hayatoy/cloudml-magic开源软件地址:https://github.com/hayatoy/cloudml-magic开源编程语言:Python 100.0%开源软件介绍:cloudml-magiccloudml-magic is a Jupyter Notebook Magics for interactively working with Google Cloud Machine Learning Engine. Your Tensorflow or Keras code on Notebook will run on ML Engine, just by running cells. PrerequisitesBefore you begin, prepare Google Cloud Platform project, enable billing and install Google Cloud SDK. Also this magics use Application Default Credentials. To activate the credentials, enter gcloud auth application-default login InstallationTo install this magics pip install cloudmlmagic To use this magics, enter the following command in your notebook. in [1]: %load_ext cloudmlmagic That's it! How to use%ml_initThis magic initializes your cloud ml job request. Do NOT forget to initialize before adding code or run. Example: in [2]: %ml_init -projectId PROJECTID -bucket BUCKET -region us-central1 -scaleTier BASIC -runtimeVersion 1.2 Install external librariesIf you want to run codes with external libraries like Keras, h5py, add following dict below the
%ml_codeThis magic adds the block into uploading package. %ml_runTo run a training job, add this magic on your code block. Run on local Machine Run on Cloud ML Engine |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论