No project description provided
Project description
Movies View Estimator
This project tries to predict the number of views a movie might have received by considering the movie Rating and the Rating Count.
What makes these project so amazing is that it uses a very small database to train a Linear Regression Model.
It accepts that it is linear data.
The pro for this solution:
- It is easy to understand
- Simple to build
- Very fast to train
- Very small project to maintain
The cons for this solution:
- Too simple
- It might not present a good prediction result
- Small dataset used to train
Another good ways to handle this problem would use k-nearest neighbors algorithm. It is a good fit for the issue.
The pro for this solution:
- It is easy to understand
- Simple to build
- Very small project to maintain
The cons for this solution:
- if the project goes bigger and more data is provided the model is computationally expensive
- Sensitive to noise
- Expensive to predict
How to install:
It uses python 3.8
pip install moviesViewEstimator
How to use:
import pandas as pd
from model import LinearRegressionModel
# if you want to know how many views a movie with rate 8.2 and almost 90 thousand rate count you need to pass a pandas
# dataframe, which is the format accepted by the model
predict_dataframe = pd.DataFrame([[8.2, 89224]]) # rate 8.2 and almost 90 thousand rate count
predict_dataframe.columns = ['Rating', 'Rating Count'] # setting the columns names
model = LinearRegressionModel()
print(model.predict(predict_dataframe))
[2460651]
The predictions tell us that a movie of Rating 8.2 and a Rating Count of almost 90 thousand, would have almost 2.5 million views.
Documentation:
For more information you can check the documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file moviesViewEstimator-0.0.8.tar.gz
.
File metadata
- Download URL: moviesViewEstimator-0.0.8.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c728b92cf6f35e7923bd1a5f02e2889c17d3f52fc09ddd21076fc24637db78c |
|
MD5 | bb99d38cc163123a42eae998667d2f7a |
|
BLAKE2b-256 | 2ba3c89dd7e61b589d6b595a702edd866e585a2dc21a4f3ab19da09381c86280 |
File details
Details for the file moviesViewEstimator-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: moviesViewEstimator-0.0.8-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 382e740594fc43c92355598811ab9272ca8d11e6c632cbfcdb481615d4d15478 |
|
MD5 | 3f8fb574eca2d9f386171ee010c46fd0 |
|
BLAKE2b-256 | 0a0cb78ac946458a8c342d7a8d62738dc61ed1a0ba53631323f00b4eaea627c1 |