Slide 46
Slide 46 text
1. Give access to MLflow for all JVM users
2. A CRUD interface to MLflow available as
Maven artifact
3. Come with MLeap flavour to save a Spark
model in a SparkML format or MLeap
format
46
@Xebiconfr
#Xebicon18
@LoicMDivad
MlflowClient client = new MlflowClient();
long expId = client.createExperiment(expName);
// ...
RunInfo runCreated = client.createRun(expId,
sourceFile);
client.logParam(runId, "min_samples_leaf", "2");
client.logParam(runId, "max_depth", "3");
// Log metrics
client.logMetric(runId, "auc", 2.12F);
client.logMetric(runId, "accuracy_score", 3.12F);
client.logMetric(runId, "zero_one_loss", 4.12F);
// Finished run
client.setTerminated(runId, RunStatus.FINISHED);