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
Metadata
Release files for moviesViewEstimator 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moviesViewEstimator-0.0.8.tar.gz | 5.9 kB | Without provenance | Details for moviesViewEstimator-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moviesViewEstimator-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for moviesViewEstimator-0.0.8-py3-none-any.whl |
Total release size: 13.0 kB
Release files / moviesViewEstimator-0.0.8.tar.gz
| Download URL | moviesViewEstimator-0.0.8.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c728b92cf6f35e7923bd1a5f02e2889c17d3f52fc09ddd21076fc24637db78c
|
|
BLAKE2b-256 checksum How to use checksums |
2ba3c89dd7e61b589d6b595a702edd866e585a2dc21a4f3ab19da09381c86280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Release files / moviesViewEstimator-0.0.8-py3-none-any.whl
| Download URL | moviesViewEstimator-0.0.8-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
382e740594fc43c92355598811ab9272ca8d11e6c632cbfcdb481615d4d15478
|
|
BLAKE2b-256 checksum How to use checksums |
0a0cb78ac946458a8c342d7a8d62738dc61ed1a0ba53631323f00b4eaea627c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Security for moviesViewEstimator 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.