data_prep 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/data_prep.gemspec +1 -1
- data/lib/data_prep.rb +1 -1
- data/spec/data_prep_spec.rb +11 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/data_prep.gemspec
CHANGED
data/lib/data_prep.rb
CHANGED
data/spec/data_prep_spec.rb
CHANGED
@@ -23,7 +23,18 @@ describe "DataPrep" do
|
|
23
23
|
@data_prep.training[0][0].class.should == Array
|
24
24
|
@data_prep.training[0][1].class.should == Array
|
25
25
|
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe "When having a target thats array" do
|
29
|
+
before do
|
30
|
+
ham = [[1, 0.5]] * 20
|
31
|
+
spam = [[0, 0.2]] * 20
|
32
|
+
@data_prep = DataPrep.new([0] => ham, [1] => spam)
|
33
|
+
end
|
26
34
|
|
35
|
+
it "should hold 2 arrays" do
|
36
|
+
@data_prep.training[0][1].dimensions.should == 1
|
37
|
+
end
|
27
38
|
end
|
28
39
|
|
29
40
|
end
|