orient_express 0.2.4__tar.gz → 0.3.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: orient_express
3
- Version: 0.2.4
3
+ Version: 0.3.1
4
4
  Summary: A library to simplify model deployment to Vertex AI
5
5
  Author: Alexey Zankevich
6
6
  Author-email: alex.zankevich@shiftsmart.com
@@ -14,8 +14,6 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Dist: google-cloud-aiplatform
15
15
  Requires-Dist: google-cloud-storage
16
16
  Requires-Dist: pandas
17
- Requires-Dist: scikit-learn (>=1.5.2,<2.0.0)
18
- Requires-Dist: xgboost (>=2.1.2,<3.0.0)
19
17
  Description-Content-Type: text/markdown
20
18
 
21
19
  # Orient Express
@@ -165,6 +165,12 @@ class ModelExpress:
165
165
 
166
166
  return self.model.predict(input_df)
167
167
 
168
+ def local_predict_proba(self, input_df):
169
+ if not self.model:
170
+ self.load_model_from_registry()
171
+
172
+ return self.model.predict_proba(input_df)
173
+
168
174
  def load_model_from_registry(self):
169
175
  if self.model_version:
170
176
  vertex_model = aiplatform.Model(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "orient_express"
3
- version = "0.2.4"
3
+ version = "0.3.1"
4
4
  description = "A library to simplify model deployment to Vertex AI"
5
5
  authors = ["Alexey Zankevich <alex.zankevich@shiftsmart.com>"]
6
6
  readme = "README.md"
@@ -10,12 +10,12 @@ python = ">=3.9"
10
10
  google-cloud-aiplatform = "*"
11
11
  google-cloud-storage = "*"
12
12
  pandas = "*"
13
- scikit-learn = "^1.5.2"
14
- xgboost = "^2.1.2"
15
13
 
16
14
  [tool.poetry.dev-dependencies]
17
15
  black = "24.10.0"
18
16
  pytest = "8.3.3"
17
+ scikit-learn = "1.5.2"
18
+ xgboost = "2.1.2"
19
19
 
20
20
  [build-system]
21
21
  requires = ["poetry-core"]
File without changes