New Model with Same Parameters¶
First, we’ll initialize a client with our server credentials and store it in the variable dai
.
[1]:
import driverlessai
dai = driverlessai.Client(address='http://localhost:12345', username='py', password='py')
Then, we get the most recent version of an experiment with ‘iris’ in the name.
[8]:
ex = [ex for ex in dai.experiments.list() if 'iris' in ex.name][0]
Finally, we’ll use the experiment’s retrain()
method to start a new experiment with the same parameters. We can override specific settings by passing them as keyword arguments. For example here, we change the accuracy
setting to 5
.
[9]:
ex.retrain(accuracy=5)
Experiment launched at: http://localhost:12345/#experiment?key=88a04af2-6002-11ea-919d-0242ac110002
Complete 100% - Status: Complete
[9]:
<class 'driverlessai.experiments.Model'> 88a04af2-6002-11ea-919d-0242ac110002