easy_ml 0.2.0.pre.rc98 → 0.2.0.pre.rc100

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: 8c105c4f00c13b7654204ff04d2ffcec27657a4fd3386a7712fba6da90bd733a
4
- data.tar.gz: 141dc35ad18183a64b73b9cebc57ecebdfc5e9855c9afa52a0270e904bfcc651
3
+ metadata.gz: 60b022cce39806029405dad71468dfbe0ccac88182c11f224ff764aa3ac8de0c
4
+ data.tar.gz: '029679b95dacfc6009575467031bf5aa95d95d964ddd2e5fe88109a56183ad78'
5
5
  SHA512:
6
- metadata.gz: 2412eed49dd5824d871037ee4806a7fdf970caf034d03a504ae1020fa3d71aa79a9fb544ed5208c65ca1f4bd7be05f5a60ffd57c17187d3986f64b1c2a0f0f4d
7
- data.tar.gz: 5e2416e89e5855b1fddfee0072a0b750880fb4f7afbf47968d3e0e8f8e20e5eb95ced11ff05cd9df79473cbc6621006148b1965c2439477757aa78c1340e2415
6
+ metadata.gz: f3b147c4b3ed9f964742dab5dd6c0bea3d9375b4511dab02f71bc2f12ba28481d08928fe1d500446b79f19e542bc4d73457cc2e3144835ba5a2126c75a2feba1
7
+ data.tar.gz: 2406d8925786f4d9ebabd126af836f3aad01e089215b2a649e5f211584c660f58d0c293cd60d529646019389a64411d6e198ea5f7d1c962a15a37ece43b5c6ec
@@ -29,8 +29,6 @@ module EasyML
29
29
  end
30
30
  end
31
31
 
32
- private
33
-
34
32
  def files_to_keep_for_dir(dir)
35
33
  files_to_keep.map(&:to_s).select { |f| f.start_with?(dir.to_s) }
36
34
  end
@@ -55,8 +53,12 @@ module EasyML
55
53
  end
56
54
  end
57
55
 
56
+ def test_mode?
57
+ Rails.env.test?
58
+ end
59
+
58
60
  def model_files_to_keep
59
- if Rails.env.test?
61
+ if test_mode?
60
62
  []
61
63
  else
62
64
  active_models.map(&:model_file).compact.map(&:full_path).uniq
@@ -64,15 +66,15 @@ module EasyML
64
66
  end
65
67
 
66
68
  def dataset_files_to_keep
67
- if Rails.env.test?
69
+ if test_mode?
68
70
  []
69
71
  else
70
- EasyML::Dataset.all.flat_map(&:files).uniq
72
+ EasyML::Dataset.all.flat_map(&:files).uniq + active_models.map(&:dataset).flat_map(&:files).uniq
71
73
  end
72
74
  end
73
75
 
74
76
  def datasource_files_to_keep
75
- if Rails.env.test?
77
+ if test_mode?
76
78
  Dir.glob(EasyML::Engine.root_dir.glob("datasources/**/*.{csv,parquet}")).uniq
77
79
  else
78
80
  EasyML::Datasource.all.flat_map(&:files).uniq
@@ -559,7 +559,6 @@ module EasyML
559
559
  dataset.upload_remote_files
560
560
  model_snapshot = snapshot
561
561
 
562
- Thread.current[:deploying] = true
563
562
  # Prepare the model to be retrained (reset values so they don't conflict with our snapshotted version)
564
563
  bump_version(force: true)
565
564
  dataset.bump_versions(version)
@@ -18,6 +18,7 @@ module EasyML
18
18
  attributes :id,
19
19
  :prediction_type,
20
20
  :raw_input,
21
- :normalized_input
21
+ :normalized_input,
22
+ :model_history_id
22
23
  end
23
24
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyML
4
- VERSION = "0.2.0-rc98"
4
+ VERSION = "0.2.0-rc100"
5
5
 
6
6
  module Version
7
7
  end
metadata CHANGED
@@ -1,11 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_ml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.rc98
4
+ version: 0.2.0.pre.rc100
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
10
  date: 2025-03-07 00:00:00.000000000 Z
@@ -865,7 +864,6 @@ metadata:
865
864
  homepage_uri: https://github.com/brettshollenberger/easy_ml
866
865
  source_code_uri: https://github.com/brettshollenberger/easy_ml
867
866
  changelog_uri: https://github.com/brettshollenberger/easy_ml
868
- post_install_message:
869
867
  rdoc_options: []
870
868
  require_paths:
871
869
  - lib
@@ -876,12 +874,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
876
874
  version: 3.0.0
877
875
  required_rubygems_version: !ruby/object:Gem::Requirement
878
876
  requirements:
879
- - - ">"
877
+ - - ">="
880
878
  - !ruby/object:Gem::Version
881
- version: 1.3.1
879
+ version: '0'
882
880
  requirements: []
883
- rubygems_version: 3.4.10
884
- signing_key:
881
+ rubygems_version: 3.6.5
885
882
  specification_version: 4
886
883
  summary: Effortless Machine Learning in Ruby
887
884
  test_files: []