easy_ml 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/easy_ml/model.rb +11 -2
- data/app/models/easy_ml/models/xgboost.rb +1 -0
- data/lib/easy_ml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 194dfdb77406b2509c29056d821804bbf388552d675d2fb08ee5bad296119c58
|
4
|
+
data.tar.gz: e456e94893d3f51f2432355f3b6ce94feda95066f7258f57499122549bebfbe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279ca003173f2acdd2dcc802cc96fb479658edfd86e6c773dca7615fe550aa3e80999c2c2c8e665ee5affe5fa5b10c888e78c0e426688dc2ce1978d420773722
|
7
|
+
data.tar.gz: 6443bb0f2e3560a0b9f28fe5d657b58bae75a56756db3193dd86bfa0772c19a66350d46d595b4ce133ab328dfdc3893ab1b06ae78c54330ae1a3174e9fc390a7
|
data/app/models/easy_ml/model.rb
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
require_relative "../../../lib/easy_ml/core/model"
|
2
2
|
module EasyML
|
3
3
|
class Model < ActiveRecord::Base
|
4
|
-
|
4
|
+
if ActiveRecord::Base.connection.data_source_exists?("easy_ml_models")
|
5
|
+
include EasyML::Core::ModelCore
|
5
6
|
|
6
|
-
|
7
|
+
self.table_name = "easy_ml_models"
|
8
|
+
else
|
9
|
+
# Placeholder if the table doesn't exist (keeps the file quiet)
|
10
|
+
def self.table_ready?
|
11
|
+
false
|
12
|
+
end
|
13
|
+
|
14
|
+
Rails.logger.info("Skipping EasyML::Model definition as the 'easy_ml_models' table doesn't exist.")
|
15
|
+
end
|
7
16
|
|
8
17
|
scope :live, -> { where(is_live: true) }
|
9
18
|
attribute :root_dir, :string
|
data/lib/easy_ml/version.rb
CHANGED