easy_ml 0.2.0.pre.rc5 → 0.2.0.pre.rc7

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: d9a3910358a08a9989a8b6530c63be686a66ddfbcc8ea851eaf7c2523ae6cb03
4
- data.tar.gz: 1e560b5b1dfd10150da4c54e57076a788fc9103725e08825c3a95564ab620e95
3
+ metadata.gz: 939e5f1e5b5e328d849ea8d1b2f02848a29f638a5cdbc26661abd702fbae37e6
4
+ data.tar.gz: d33d116fd6cc0b8b3f5f25886f203841930bfda63b66682dd3560147d5cf0ca2
5
5
  SHA512:
6
- metadata.gz: 9bd90891a4a4be562dfb7606cc8a9f1c291a896e28cb3bffa46788efc52fffe36a761247f42efb64050731d33614133c47ee91345f48b62be9e62b99dfb7070d
7
- data.tar.gz: 79a0334452968c255642a820314fc1303f7742a3ce837ea9179cca3585c72f7a3e447db02906418c064d7c2a34a78ce55fc361d9a6a7263f3fcd17f5c4e00e72
6
+ metadata.gz: 32ee68da33f6e8a8a373e254532584a7b97f8d2bbc56fffecbade419c65a487c3c1bdbfdaa7d2a99f3391890fe5029931381838365f84d63ac9d444a5ddb7dc8
7
+ data.tar.gz: caab7cbdcb4d7eb29ec8c6089cc427defae17e9933b89ff804d3c75ef9773e487dde8bb66eb5d195c797872d86049000f693e16edf7df6b9d49ae701ae900fcd
@@ -13,13 +13,12 @@ module EasyML
13
13
  application_js = entrypoint.dig("file")
14
14
  css_files = entrypoint.dig("css")
15
15
 
16
- # Create HTML tags for the JavaScript and CSS
16
+ # Create HTML tags for the JavaScript and CSS using Rails tag helpers
17
17
  tags = []
18
- tags << "<script type=\"module\" src=\"/easy_ml/assets/#{application_js}\"></script>"
18
+ tags << javascript_include_tag("/easy_ml/assets/#{application_js}", type: "module")
19
19
  css_files.each do |css_file|
20
- tags << "<link rel=\"stylesheet\" href=\"/easy_ml/assets/#{css_file}\" />"
20
+ tags << stylesheet_link_tag("/easy_ml/assets/#{css_file}")
21
21
  end
22
-
23
22
  tags.join("\n").html_safe
24
23
  end
25
24
  end
@@ -1,15 +1,13 @@
1
1
  module EasyML
2
- module Jobs
3
- class FinalizeFeatureJob < ApplicationJob
4
- queue_as :features
2
+ class FinalizeFeatureJob < ApplicationJob
3
+ queue_as :features
5
4
 
6
- def perform(feature_id)
7
- feature = EasyML::Feature.find(feature_id)
8
- feature.update!(
9
- applied_at: Time.current,
10
- needs_fit: false,
11
- )
12
- end
5
+ def perform(feature_id)
6
+ feature = EasyML::Feature.find(feature_id)
7
+ feature.update!(
8
+ applied_at: Time.current,
9
+ needs_fit: false,
10
+ )
13
11
  end
14
12
  end
15
13
  end
@@ -0,0 +1,3 @@
1
+ Rails.autoloaders.main.inflector.inflect(
2
+ "html" => "HTML"
3
+ )
@@ -1,6 +1,5 @@
1
1
  require "aws-sdk"
2
2
  require "awesome_print"
3
- require "action_controller"
4
3
  require "inertia_rails"
5
4
  require "jsonapi/serializer"
6
5
  require "numo/narray"
@@ -14,6 +13,7 @@ require "xgb"
14
13
  require "rails/engine"
15
14
  require "activerecord-import"
16
15
  require "historiographer"
16
+ require "resque-batched-job"
17
17
 
18
18
  module EasyML
19
19
  class Engine < Rails::Engine
@@ -35,7 +35,7 @@ module EasyML
35
35
  root.join("app/models/datasources"),
36
36
  root.join("app/models"),
37
37
  root.join("app/models/**/"),
38
- root.join("lib/easy_ml"),
38
+ root.join("lib/easy_ml/**/*"),
39
39
  ]
40
40
 
41
41
  initializer "easy_ml.inflections" do
@@ -47,12 +47,6 @@ module EasyML
47
47
  Polars.enable_string_cache
48
48
  end
49
49
 
50
- config.after_initialize do
51
- Dir[root.join("app/models/**/*.rb")].select { |x| x.match?(/_history.rb/) }.each do |file|
52
- require_dependency file
53
- end
54
- end
55
-
56
50
  unless %w[rake rails bin/rails].include?(File.basename($0)) && %w[generate db:migrate db:drop easy_ml:migration].include?(ARGV.first)
57
51
  config.after_initialize do
58
52
  Dir.glob(File.expand_path("app/models/easy_ml/datasources/*.rb", EasyML::Engine.root)).each do |file|
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyML
4
- VERSION = "0.2.0-rc5"
4
+ VERSION = "0.2.0-rc7"
5
5
 
6
6
  module Version
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_ml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.rc5
4
+ version: 0.2.0.pre.rc7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger
@@ -562,13 +562,13 @@ files:
562
562
  - app/models/easy_ml/retraining_run.rb
563
563
  - app/models/easy_ml/settings.rb
564
564
  - app/models/easy_ml/splitter.rb
565
+ - app/models/easy_ml/splitter_history.rb
565
566
  - app/models/easy_ml/splitters/base_splitter.rb
566
567
  - app/models/easy_ml/splitters/date_splitter.rb
567
568
  - app/models/easy_ml/splitters/predefined_splitter.rb
568
569
  - app/models/easy_ml/splitters/random_splitter.rb
569
570
  - app/models/easy_ml/tuner_job.rb
570
571
  - app/models/easy_ml/tuner_run.rb
571
- - app/models/splitter_history.rb
572
572
  - app/serializers/easy_ml/column_serializer.rb
573
573
  - app/serializers/easy_ml/dataset_serializer.rb
574
574
  - app/serializers/easy_ml/datasource_serializer.rb
@@ -579,6 +579,7 @@ files:
579
579
  - app/serializers/easy_ml/settings_serializer.rb
580
580
  - app/views/layouts/easy_ml/application.html.erb
581
581
  - config/initializers/resque.rb
582
+ - config/initializers/zeitwerk.rb
582
583
  - config/resque-pool.yml
583
584
  - config/routes.rb
584
585
  - config/spring.rb