Comments (3)
Running the script as an experiment
To run the script, create a ScriptRunConfig that references the folder and script file. You generally also need to define a Python (Conda) environment that includes any packages required by the script. In this example, the script uses Scikit-Learn so you must create an environment that includes that. The script also uses Azure Machine Learning to log metrics, so you need to remember to include the azureml-defaults package in the environment.
from dp100-azuredatascientistassociate.
https://docs.microsoft.com/en-ca/azure/machine-learning/how-to-use-environments
https://docs.microsoft.com/en-ca/azure/machine-learning/concept-environments
from dp100-azuredatascientistassociate.
According to the documentation available in: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-environments#create-an-environment
It is necessary to set the property Environment.python.user_managed_dependencies = True.
The specific part of the documentation is related to a containerized environment, which is not this case, but the same property works for local Python environments as I have been running these notebooks locally with VS Code and a local Conda installation.
Specify your own Python interpreter
In some situations, your custom base image may already contain a Python environment with packages that you want to use.
To use your own installed packages and disable Conda, set the parameter Environment.python.user_managed_dependencies = True. Ensure that the base image contains a Python interpreter, and has the packages your training script needs.
For example, to run in a base Miniconda environment that has NumPy package installed, first specify a Dockerfile with a step to install the package. Then set the user-managed dependencies to True.
You can also specify a path to a specific Python interpreter within the image, by setting the Environment.python.interpreter_path variable.
from dp100-azuredatascientistassociate.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dp100-azuredatascientistassociate.