Skip to content

Commit

Permalink
[Java] Add documentation on how to use extended createRun (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav authored and smurching committed Oct 12, 2018
1 parent 966ce4a commit 986f01b
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -85,7 +85,17 @@ public RunInfo createRun(long experimentId, String appName) {
}

/**
* Creates a new run.
* Creates a new run. This method allows providing all possible fields of CreateRun, and can be
* invoked as follows:
*
* <pre>
* import org.mlflow.api.proto.Service.CreateRun;
* CreateRun.Builder request = CreateRun.newBuilder();
* request.setExperimentId(experimentId);
* request.setSourceVersion("my-version");
* createRun(request.build());
* </pre>
*
* @return RunInfo created by the server
*/
public RunInfo createRun(CreateRun request) {
Expand Down

0 comments on commit 986f01b

Please sign in to comment.