Skip to main content

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)

Source distribution for moviesViewEstimator 0.0.8
File Size Uploaded
moviesViewEstimator-0.0.8.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moviesViewEstimator 0.0.8
File Interpreter ABI Platform
moviesViewEstimator-0.0.8-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page