easy_ml 0.2.0.pre.rc68 → 0.2.0.pre.rc69
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 +4 -4
- data/app/frontend/components/dataset/PreprocessingConfig.tsx +4 -4
- data/app/jobs/easy_ml/compute_feature_job.rb +1 -0
- data/app/models/easy_ml/column.rb +0 -2
- data/app/models/easy_ml/dataset.rb +7 -1
- data/app/models/easy_ml/datasource.rb +2 -0
- data/lib/easy_ml/version.rb +1 -1
- data/public/easy_ml/assets/.vite/manifest.json +1 -1
- data/public/easy_ml/assets/assets/entrypoints/{Application.tsx-v1q2Ux1T.js → Application.tsx-CibZcrBc.js} +36 -36
- data/public/easy_ml/assets/assets/entrypoints/{Application.tsx-v1q2Ux1T.js.map → Application.tsx-CibZcrBc.js.map} +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4c3878d6cb51daa13de6d41b0480ce8d5f5288266e68866d9e2532de3d372b5
|
4
|
+
data.tar.gz: 62b963738afea40ffa9c00624164c8293b4b6994cd3c21e67162c8e61715c0de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8a6d8ee4af5fbac1f45b79e5edee2e8f9f4e3807616d05ab98ea9bc3ae42f08d546fb1a7e14b22338df8961716cf54f54300eb33d0a049582e64b7f54ea8d86
|
7
|
+
data.tar.gz: 61b7efd2451e0189f9f8ebb7149ca7707723bdf6cfa28e232b88fe0b286b86d6607fbbc4f222aaf97a7d175ef0e947041b9dd61ec2ef4bcec8e922561dce6c27
|
@@ -264,18 +264,18 @@ export function PreprocessingConfig({
|
|
264
264
|
const renderStrategySpecificInfo = (type: 'training' | 'inference') => {
|
265
265
|
const strategy = type === 'training' ? training : inference;
|
266
266
|
let content;
|
267
|
-
if (strategy.method === 'most_frequent' && column.statistics?.raw.most_frequent_value) {
|
267
|
+
if (strategy.method === 'most_frequent' && column.statistics?.raw.most_frequent_value !== undefined) {
|
268
268
|
content = `Most Frequent Value: ${column.statistics.raw.most_frequent_value}`
|
269
269
|
} else if (strategy.method === 'ffill') {
|
270
270
|
const lastValue = column.statistics?.raw.last_value;
|
271
|
-
if (lastValue !== undefined
|
271
|
+
if (lastValue !== undefined) {
|
272
272
|
content = `Forward Fill using Last Value: ${lastValue}`;
|
273
273
|
} else {
|
274
274
|
content = 'Set date column & apply preprocessing to see last value';
|
275
275
|
}
|
276
|
-
} else if (strategy.method === 'median' && column.statistics?.raw?.median !== undefined
|
276
|
+
} else if (strategy.method === 'median' && column.statistics?.raw?.median !== undefined) {
|
277
277
|
content = `Median: ${column.statistics.raw.median}`
|
278
|
-
} else if (strategy.method === 'mean' && column.statistics?.raw?.mean !== undefined
|
278
|
+
} else if (strategy.method === 'mean' && column.statistics?.raw?.mean !== undefined) {
|
279
279
|
content = `Mean: ${column.statistics.raw.mean}`
|
280
280
|
} else {
|
281
281
|
return null;
|
@@ -14,6 +14,7 @@ module EasyML
|
|
14
14
|
#
|
15
15
|
# https://github.com/drfeelngood/resque-batched-job/blob/master/lib/resque/plugins/batched_job.rb#L86
|
16
16
|
batch_args = batch_args.dup
|
17
|
+
puts "Running batch #{batch_id} with args #{batch_args}"
|
17
18
|
run_one_batch(batch_id, batch_args)
|
18
19
|
end
|
19
20
|
|
@@ -112,7 +112,7 @@ module EasyML
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def schema
|
115
|
-
read_attribute(:schema) || datasource.schema
|
115
|
+
read_attribute(:schema) || datasource.schema || datasource.after_sync.schema
|
116
116
|
end
|
117
117
|
|
118
118
|
def processed_schema
|
@@ -186,9 +186,12 @@ module EasyML
|
|
186
186
|
|
187
187
|
def actually_refresh
|
188
188
|
refreshing do
|
189
|
+
puts "actually_refresh"
|
189
190
|
learn(delete: false) # After syncing datasource, learn new statistics + sync columns
|
190
191
|
process_data
|
192
|
+
puts "process_data"
|
191
193
|
fully_reload
|
194
|
+
puts "Learning..."
|
192
195
|
learn
|
193
196
|
learn_statistics(type: :processed) # After processing data, we learn any new statistics
|
194
197
|
now = UTC.now
|
@@ -208,7 +211,9 @@ module EasyML
|
|
208
211
|
return refresh_async if async
|
209
212
|
|
210
213
|
refreshing do
|
214
|
+
puts "prepare.."
|
211
215
|
prepare
|
216
|
+
puts "fit features..."
|
212
217
|
fit_features(async: async)
|
213
218
|
end
|
214
219
|
end
|
@@ -225,6 +230,7 @@ module EasyML
|
|
225
230
|
end
|
226
231
|
|
227
232
|
def after_fit_features
|
233
|
+
puts "after fit features..."
|
228
234
|
unlock!
|
229
235
|
reload
|
230
236
|
return if failed?
|
@@ -122,10 +122,12 @@ module EasyML
|
|
122
122
|
self.refreshed_at = Time.now
|
123
123
|
self.sha = adapter.sha
|
124
124
|
save
|
125
|
+
self.schema
|
125
126
|
end
|
126
127
|
|
127
128
|
def refresh
|
128
129
|
unless adapter.needs_refresh?
|
130
|
+
after_sync if schema.nil?
|
129
131
|
update(sha: adapter.sha) if sha.nil?
|
130
132
|
update!(is_syncing: false)
|
131
133
|
return
|
data/lib/easy_ml/version.rb
CHANGED