use of com.google.cloud.aiplatform.v1.HyperparameterTuningJobName in project java-aiplatform by googleapis.
the class GetHyperparameterTuningJobSample method getHyperparameterTuningJobSample.
static void getHyperparameterTuningJobSample(String project, String hyperparameterTuningJobId) throws IOException {
JobServiceSettings settings = JobServiceSettings.newBuilder().setEndpoint("us-central1-aiplatform.googleapis.com:443").build();
String location = "us-central1";
// the "close" method on the client to safely clean up any remaining background resources.
try (JobServiceClient client = JobServiceClient.create(settings)) {
HyperparameterTuningJobName name = HyperparameterTuningJobName.of(project, location, hyperparameterTuningJobId);
HyperparameterTuningJob response = client.getHyperparameterTuningJob(name);
System.out.format("response: %s\n", response);
}
}
Aggregations