All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.googleapis.bigquery.ModelExtractOptions.scala Maven / Gradle / Ivy

There is a newer version: 0.4.5-v2-20240905
Show newest version
package googleapis.bigquery

import io.circe._
import io.circe.syntax._

final case class ModelExtractOptions(
    /** The 1-based ID of the trial to be exported from a hyperparameter tuning model. If not specified, the trial with id = [Model](https://cloud.google.com/bigquery/docs/reference/rest/v2/models#resource:-model).defaultTrialId is exported. This field is ignored for models not trained with hyperparameter tuning.
      */
    trialId: Option[Long] = None
)
object ModelExtractOptions {
  implicit val encoder: Encoder[ModelExtractOptions] = Encoder.instance { x =>
    Json.obj("trialId" := x.trialId)
  }
  implicit val decoder: Decoder[ModelExtractOptions] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[Long]]("trialId")
    } yield ModelExtractOptions(v0)

  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy