- Artificial Intelligence for Big Data
- Anand Deshpande Manish Kumar
- 100字
- 2021-06-25 21:57:13
The estimator algorithm
An estimator is another algorithm that can produce a transformer by fitting on a DataFrame. For instance, a learning algorithm can train on a dataset and produce a model. This produces a transformer by learning an algorithm. It uses the fit() method to produce a transformer. For instance, the Na?ve Bayes learning algorithm is an estimator that calls the fit() method and trains a Na?ve Bayes model, which is a transformer. We will use the following code to train the model:
import org.apache.spark.ml.classification.NaiveBayes
val nb = new NaiveBayes().setModelType("multinomial")
val model = nb.fit(Training_DataDF)
推薦閱讀
- Word 2010中文版完全自學手冊
- Unity 5.x Game AI Programming Cookbook
- 從0到1:數據分析師養成寶典
- Access 2007數據庫應用上機指導與練習
- MySQL基礎教程
- 大數據Hadoop 3.X分布式處理實戰
- Microsoft Power BI數據可視化與數據分析
- 企業級數據與AI項目成功之道
- 數據庫技術及應用教程
- Chef Essentials
- Augmented Reality using Appcelerator Titanium Starter
- MySQL數據庫實用教程
- Kubernetes快速進階與實戰
- Tableau商業分析從新手到高手(視頻版)
- Configuration Management with Chef-Solo