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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2404bc2b6613d95627dc89265e76351f648d9b45e65f5935a71a0e2334d08d2c
4
- data.tar.gz: 072f1d58d6e5d7864e3cdb365701c6fb6e635bc20e3e9ef415fe52772671ce76
3
+ metadata.gz: b4c3878d6cb51daa13de6d41b0480ce8d5f5288266e68866d9e2532de3d372b5
4
+ data.tar.gz: 62b963738afea40ffa9c00624164c8293b4b6994cd3c21e67162c8e61715c0de
5
5
  SHA512:
6
- metadata.gz: d4e8ab597db1470630e555448fb057af07fab38ff5125fd7ce548db5ba71ca7abac26d1761fb892459890b5c8bce169cd9e165d80b4b91ec6a806dda1a36cbe5
7
- data.tar.gz: 71cab456d196c15e03b16e2677cb3b64e08527b2b4acc20ac8ee6c0f0ceea671b74df0d61c174a914cfa85f7e476ad77f264ae78e6b604ed8f50ca2756d84956
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 && lastValue !== null) {
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 && column.statistics?.raw?.median !== null) {
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 && column.statistics?.raw?.mean !== null) {
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
 
@@ -290,8 +290,6 @@ module EasyML
290
290
  end
291
291
  end
292
292
 
293
- alias_method :feature, :computing_feature
294
-
295
293
  def set_feature_lineage
296
294
  return if dataset.nil?
297
295
 
@@ -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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyML
4
- VERSION = "0.2.0-rc68"
4
+ VERSION = "0.2.0-rc69"
5
5
 
6
6
  module Version
7
7
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "entrypoints/Application.tsx": {
3
- "file": "assets/entrypoints/Application.tsx-v1q2Ux1T.js",
3
+ "file": "assets/entrypoints/Application.tsx-CibZcrBc.js",
4
4
  "name": "entrypoints/Application.tsx",
5
5
  "src": "entrypoints/Application.tsx",
6
6
  "isEntry": true,