ds判断预测蛋白活性位点
In this article, I share with you my experience in analyzing and predicting the Google Apps ratings. This is one of the tests I had to solve in Data Science interviews. I have to point out that this is a personal way of solving the problem, it can help you draw your own reasoning.
在本文中,我与您分享了我在分析和预测Google Apps评分方面的经验。 这是我在数据科学采访中必须解决的测试之一。 我必须指出,这是解决问题的个人方法,可以帮助您得出自己的推理。
As with any other DS project, we start with downloading the data file from here.
You can check the code I used in this project by visualizing the Jupyter Notebook of this project on my Github from here.
您可以检查通过可视化项目的Jupyter笔记本上我Github上在这个项目中使用的代码,我在这里。
Without further ado, Let’s go!
事不宜迟,我们开始吧!
数据入门 (Getting started with the data)
The first step is data preprocessing. We clean, play and transform all the elements and columns of the data based on their formats and types. As we can see, our data has the following format:
第一步是数据预处理。 我们根据其格式和类型来清理,播放和转换数据的所有元素和列。 如我们所见,我们的数据具有以下格式:
apps = pd.read_csv('GooglePlayApp-ELHOUD.csv')
apps.info()
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/46e66d3c98a2190b8c1e1be56ddbb761.png)
The data frame contains 13 different columns and 8281 rows. The column “Rating” represents the Y-vector of our model: what we try to predict. We visualize the different values of “Rating”:
数据帧包含13个不同的列和8281行。 “ Rating ”列代表模型的Y向量:我们试图预测的结果。 我们可视化“ Rating ”的不同值:
apps['Rating'].value_counts()
While visualizing the values of “Rating”, we notice that there is an unreasonable rating in our data (19.0). In general, the Apps rating is between 0 and 5 stars. We delete this value to avoid biasing our model. We can replace it with 1.9 if we think it was a typing mistake, but since we can’t be sure and we have no direct contact with the data owner, it is better to remove it.
在可视化“ Rating ”的值时,我们注意到数据中的评级不合理(19.0)。 通常,Apps评分在0到5星之间。 我们删除此值以避免对我们的模型产生偏见。 如果我们认为这是键入错误,可以将其替换为1.9,但是由于不能确定并且我们没有与数据所有者直接联系,因此最好将其删除。
After that, we check all the duplicate apps and remove them:
之后,我们检查所有重复的应用程序并将其删除:
print('Number of apps at the beginning:',