Created
February 26, 2023 12:27
-
-
Save a-agmon/d6392011d24dcd5d91ea5e815f632b0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private def trainXGBBooster(trainSeq: Seq[FeaturesRecord]): | |
Try[Booster] = Try { | |
XGBoost.train(trainSeq.toDMatrix, | |
Map("eta" -> 0.1f, "max_depth" -> 4, "objective" -> "reg:squarederror"), 50) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment