官术网_书友最值得收藏!

  • Applied Deep Learning with Keras
  • Ritesh Bhagwat Mahla Abdolahnejad Matthew Moocarme
  • 229字
  • 2021-06-11 13:41:28

Summary

In this chapter, we have covered how to prepare data and construct machine learning models. We have achieved this utilizing Python and libraries such as pandas and scikit-learn. We have also used the algorithms in scikit-learn to build our machine learning models.

In this chapter, we learned how to load data into Python, and how to manipulate data so that a machine learning model can be trained on the data. This involved converting all columns to numerical data types. We also learned to create a basic logistic regression classification model using scikit-learn algorithms. We divided the dataset into training and test datasets and fit the model to the training dataset. We evaluated the performance of the model on the test dataset using the model evaluation metrics: accuracy, precision, recall, and f1 score.

Finally, we iterated on this basic model by creating two models with different types of regularization to the model. We utilized cross-validation to determine the optimal parameter to use for the regularization parameter.

In the next chapter, we will use the same concept learned in this chapter; however, we will create the model using the Keras library. We will use the same dataset, and attempt to predict the same target value, for the same classification task. We will cover how to use regularization, cross-validation, and model evaluation metrics when fitting our neural network to the data.

主站蜘蛛池模板: 西丰县| 修武县| 加查县| 曲阜市| 乌鲁木齐市| 左权县| 南乐县| 平湖市| 莱州市| 平潭县| 益阳市| 彩票| 永和县| 昌吉市| 广宁县| 抚州市| 莎车县| 年辖:市辖区| 文水县| 蕉岭县| 阿瓦提县| 紫金县| 双江| 苏尼特右旗| 叙永县| 科技| 寻乌县| 类乌齐县| 醴陵市| 兰坪| 康平县| 遂昌县| 萍乡市| 美姑县| 伽师县| 上犹县| 金乡县| 宝丰县| 柳州市| 旺苍县| 城口县|