easy_ml 0.2.0.pre.rc91 → 0.2.0.pre.rc92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 428c2f3e0ce95c3f41ea3e8c31a8cdbc3709a9bd4332d0736b6b2b4000677430
|
4
|
+
data.tar.gz: 2bad8c01bbb1a65f3135765b815c88b3ac405a48e9a97d30173f44ac5755c4b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08218be1a52ee2f871da922b176af2ca6555739af0bec44065bfc81dfdfcb84b7a27c3501b66915b5d07db4bce2427ee4324e38f30a3534564c1be3df1d991a2'
|
7
|
+
data.tar.gz: 2eb3d84ec7fc7be829ad27bf689c617905299110cc40d0185a81d94c3b165c2039168b36473806140c220a4cb7f91c91a905d611657bfc8205ff2f77c257edb9
|
@@ -900,5 +900,21 @@ module EasyML
|
|
900
900
|
def underscored_name
|
901
901
|
name.gsub(/\s{2,}/, " ").gsub(/\s/, "_").downcase
|
902
902
|
end
|
903
|
+
|
904
|
+
TIME_METHODS = %w(
|
905
|
+
refresh
|
906
|
+
prepare_features
|
907
|
+
refresh_datasource
|
908
|
+
split_data
|
909
|
+
fit
|
910
|
+
normalize_all
|
911
|
+
learn
|
912
|
+
learn_statistics
|
913
|
+
fit_features
|
914
|
+
)
|
915
|
+
include EasyML::Timing
|
916
|
+
TIME_METHODS.each do |method|
|
917
|
+
measure_method_timing method
|
918
|
+
end
|
903
919
|
end
|
904
920
|
end
|
@@ -4,10 +4,5 @@ class AddUniqueConstraintToDatasetNames < ActiveRecord::Migration[<%= ActiveReco
|
|
4
4
|
remove_index :easy_ml_datasets, :name
|
5
5
|
end
|
6
6
|
add_index :easy_ml_datasets, :name, unique: true
|
7
|
-
|
8
|
-
if index_exists?(:easy_ml_dataset_histories, :name)
|
9
|
-
remove_index :easy_ml_dataset_histories, :name
|
10
|
-
end
|
11
|
-
add_index :easy_ml_dataset_histories, :name, unique: true
|
12
7
|
end
|
13
8
|
end
|
data/lib/easy_ml/timing.rb
CHANGED
@@ -19,9 +19,7 @@ module EasyML
|
|
19
19
|
result = send(method_alias, *args, **kwargs, &block)
|
20
20
|
ending = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
21
21
|
elapsed = ending - starting
|
22
|
-
|
23
|
-
puts "#{method_name} took #{elapsed.round(2)} seconds"
|
24
|
-
end
|
22
|
+
puts "#{method_name} took #{elapsed} seconds"
|
25
23
|
# StatsD.measure("#{Rails.env}.#{prefix.present? ? "#{prefix}." : ""}#{method_name}.timing", elapsed)
|
26
24
|
result
|
27
25
|
end
|
data/lib/easy_ml/version.rb
CHANGED