You must set up credentials in order to access the DataRobot API. For more information, see Credentials
All of the modeling within DataRobot happens within a project. Each project has one dataset that is used as the source from which to train models.
There are three steps required to begin modeling:
- Create an empty project.
- Upload a data file to model.
- Select parameters and start training models with the autopilot.
The following command includes these three steps. It is equivalent to choosing all of the default settings recommended by DataRobot.
import datarobot as dr project = dr.Project.start(project_name='My new project', sourcedata='/home/user/data/last_week_data.csv', target='ItemsPurchased')
nameis the name of the new DataRobot project.
sourcedatais the path to the dataset.
targetis the name of the target feature column in the dataset.