zhengruifeng commented on pull request #30889:
URL: https://github.com/apache/spark/pull/30889#issuecomment-749501070


   those models are created by following lines, in 2.4.7:
   ```
   
   import org.apache.spark.ml.classification._
   import org.apache.spark.ml.regression._
   
   
   val data = 
spark.read.format("libsvm").load("/d0/Dev/Opensource/spark/data/mllib/sample_libsvm_data.txt")
   
   
   val dtc = new DecisionTreeClassifier()
   val dtcm = dtc.fit(data)
   dtcm.save("/tmp/dtc-2.4.7")
   
   
   val rfc = new RandomForestClassifier().setNumTrees(2)
   val rfcm = rfc.fit(data)
   rfcm.save("/tmp/rfc-2.4.7")
   
   
   val gbtc = new GBTClassifier().setMaxIter(2)
   val gbtcm = gbtc.fit(data)
   gbtcm.save("/tmp/gbtc-2.4.7")
   
   
   
   
   val dtr = new DecisionTreeRegressor()
   val dtrm = dtr.fit(data)
   dtrm.save("/tmp/dtr-2.4.7")
   
   
   val rfr = new RandomForestRegressor().setNumTrees(2)
   val rfrm = rfr.fit(data)
   rfrm.save("/tmp/rfr-2.4.7")
   
   
   val gbtr = new GBTRegressor().setMaxIter(2)
   val gbtrm = gbtr.fit(data)
   gbtrm.save("/tmp/gbtr-2.4.7")
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to