movieDB 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -7
- data/lib/movieDB.rb +4 -1
- data/lib/movieDB/business_intelligence.rb +16 -0
- data/lib/movieDB/confirmatory_data_analysis.rb +16 -0
- data/lib/movieDB/data_mining.rb +48 -0
- data/lib/movieDB/descriptive_statistic.rb +0 -0
- data/lib/movieDB/exploratory_data_analysis.rb +16 -0
- data/lib/movieDB/version.rb +1 -1
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 745f9c699483e8e9225c785db74f0813b994b6b1
|
4
|
+
data.tar.gz: 4f271e484f9335b363301b2b3a4ffb0ccdffa542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24f68d4b3fa8d85d44ecc8a463ebc76f5836a1a8abd363d41cb46bab4ca1cef8a6c3bee3b9e9822ec25177d8d5b746c53f0d1ec90fa63e937e989db31916885
|
7
|
+
data.tar.gz: 01a0f744e9b4801d03abc458618b3e41715ff86db32a578903c63ec6f27b20ef451ffcdb3d695c34384e9a4e7cfb6b0f7ed86a27359e1f598f149c9fc2e9b0bf
|
data/README.md
CHANGED
@@ -1,13 +1,16 @@
|
|
1
|
-
# MovieDB -
|
1
|
+
# MovieDB - Movie Data Analysis Tool
|
2
2
|
|
3
3
|
## Description
|
4
4
|
|
5
|
-
A
|
5
|
+
A ruby wrapper that inspects, cleans, transform and model imdb data and provides useful information, suggesting conclusion.
|
6
|
+
The objective is to help movie/film producers make decisions based on archival data.
|
6
7
|
|
7
|
-
Basic functions:
|
8
|
-
*
|
9
|
-
*
|
10
|
-
*
|
8
|
+
Basic functions and Data Analysis:
|
9
|
+
* Data mining
|
10
|
+
* Business Intelligence
|
11
|
+
* Descriptive Satistics
|
12
|
+
* Exploratory Data Analysis
|
13
|
+
* Confirmatory Data Analysis
|
11
14
|
|
12
15
|
## Installation
|
13
16
|
|
@@ -17,7 +20,7 @@ Add this line to your application's Gemfile:
|
|
17
20
|
|
18
21
|
And then execute:
|
19
22
|
|
20
|
-
$ bundle
|
23
|
+
$ bundle install
|
21
24
|
|
22
25
|
Or install it yourself as:
|
23
26
|
|
@@ -25,3 +28,4 @@ Or install it yourself as:
|
|
25
28
|
|
26
29
|
## Usage
|
27
30
|
|
31
|
+
work-in-progress
|
data/lib/movieDB.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
##
|
3
|
+
#TODO:Work-In_Porgress
|
4
|
+
|
5
|
+
module MovieDB
|
6
|
+
|
7
|
+
class BusinessIntelligence
|
8
|
+
attr_accessor :movie_id1, :movie_id2
|
9
|
+
|
10
|
+
def initialize(movie_id1 = nil, movie_id2 = nil)
|
11
|
+
@movie_id1 = Imdb::Movie.new(movie_id1)
|
12
|
+
@movie_id2 = Imdb::Movie.new(movie_id2)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
##
|
3
|
+
#TODO:Work-In_Porgress
|
4
|
+
|
5
|
+
module MovieDB
|
6
|
+
|
7
|
+
class ConfirmatoryDataAnalysis
|
8
|
+
attr_accessor :movie_id1, :movie_id2
|
9
|
+
|
10
|
+
def initialize(movie_id1 = nil, movie_id2 = nil)
|
11
|
+
@movie_id1 = Imdb::Movie.new(movie_id1)
|
12
|
+
@movie_id2 = Imdb::Movie.new(movie_id2)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
|
2
|
+
## Reference imdb gem
|
3
|
+
#TODO:Work-In_Porgress
|
4
|
+
|
5
|
+
module MovieDB
|
6
|
+
|
7
|
+
class DataMining
|
8
|
+
attr_accessor :movie_id1, :movie_id2
|
9
|
+
|
10
|
+
def initialize(movie_id1 = nil, movie_id2 = nil)
|
11
|
+
@movie_id1 = Imdb::Movie.new(movie_id1)
|
12
|
+
@movie_id2 = Imdb::Movie.new(movie_id2)
|
13
|
+
end
|
14
|
+
|
15
|
+
def series(value)
|
16
|
+
if value is_a? Integer
|
17
|
+
begin
|
18
|
+
@serie = Imdb::Serie.new(value.to_s)
|
19
|
+
|
20
|
+
rescue
|
21
|
+
end
|
22
|
+
else
|
23
|
+
raise ArgumentError, "value is not an integer"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def analyse_title
|
28
|
+
@episode.title
|
29
|
+
end
|
30
|
+
|
31
|
+
def analyse_season_number(season_num, episode_integer)
|
32
|
+
@season = @serie.seasons.first
|
33
|
+
@episode = @season.episode(integer)
|
34
|
+
end
|
35
|
+
|
36
|
+
def analyse_episode_number
|
37
|
+
@episode.episode
|
38
|
+
end
|
39
|
+
|
40
|
+
def analyse_plot
|
41
|
+
@episode.plot
|
42
|
+
end
|
43
|
+
|
44
|
+
def analyse_air_date
|
45
|
+
@episode.air_date
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
##
|
3
|
+
#TODO:Work-In_Porgress
|
4
|
+
|
5
|
+
module MovieDB
|
6
|
+
|
7
|
+
class ExploratoryDataAnalysis
|
8
|
+
attr_accessor :movie_id1, :movie_id2
|
9
|
+
|
10
|
+
def initialize(movie_id1 = nil, movie_id2 = nil)
|
11
|
+
@movie_id1 = Imdb::Movie.new(movie_id1)
|
12
|
+
@movie_id2 = Imdb::Movie.new(movie_id2)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
data/lib/movieDB/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: movieDB
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert_McKeever
|
@@ -150,6 +150,11 @@ files:
|
|
150
150
|
- Rakefile
|
151
151
|
- lib/movieDB.rb
|
152
152
|
- lib/movieDB/base.rb
|
153
|
+
- lib/movieDB/business_intelligence.rb
|
154
|
+
- lib/movieDB/confirmatory_data_analysis.rb
|
155
|
+
- lib/movieDB/data_mining.rb
|
156
|
+
- lib/movieDB/descriptive_statistic.rb
|
157
|
+
- lib/movieDB/exploratory_data_analysis.rb
|
153
158
|
- lib/movieDB/genre_parser.rb
|
154
159
|
- lib/movieDB/genres/en.txt
|
155
160
|
- lib/movieDB/movie_error.rb
|