|
@@ -114,9 +114,9 @@ public class XGBoostTrain {
|
|
|
XGBoostClassificationModel model = xgbClassifier.fit(assembledData);
|
|
|
|
|
|
// 保存模型
|
|
|
- String path = "/root/recommend-model/modeltrain";
|
|
|
+ String path = "file:///root/recommend-model/modeltrain";
|
|
|
model.write().overwrite().save(path);
|
|
|
- String outputPath = "/root/recommend-model/model.tar.gz";
|
|
|
+ String outputPath = "file:///root/recommend-model/model.tar.gz";
|
|
|
CompressUtil.compressDirectoryToGzip(path, outputPath);
|
|
|
String bucketName = "art-test-video";
|
|
|
String ossPath = "test/model.tar.gz";
|