Skip to content

Commit

Permalink
Project import generated by Copybara. (#105)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 799da6cf0e5020abb73dcf1be9906fc318c1b2b9

Co-authored-by: Snowflake Authors <[email protected]>
  • Loading branch information
sfc-gh-utafsir and Snowflake Authors authored Jun 18, 2024
1 parent 0634c4f commit f0ff796
Show file tree
Hide file tree
Showing 72 changed files with 1,397 additions and 504 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,4 @@ user.bazelrc
html_coverage_report/

# VSCode configuration
.vscode/
.vscode
22 changes: 19 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# Release History

## 1.5.2
## 1.5.3

### Bug Fixes

- Modeling: Fix an issue causing lineage information to be missing for
`Pipeline`, `GridSearchCV` , `SimpleImputer`, and `RandomizedSearchCV`
- Registry: Fix an issue that leads to incorrect result when using pandas Dataframe with over 100, 000 rows as the input
of `ModelVersion.run` method in Stored Procedure.

### Behavior Changes

### New Features

- Registry: Add support for TIMESTAMP_NTZ model signature data type, allowing timestamp input and output.
- Dataset: Add `DatasetVersion.label_cols` and `DatasetVersion.exclude_cols` properties.

## 1.5.2 (06-10-2024)

### Bug Fixes

Expand All @@ -12,7 +28,7 @@

### New Features

## 1.5.1
## 1.5.1 (05-22-2024)

### Bug Fixes

Expand All @@ -37,7 +53,7 @@
permissions to operate on schema. Please call
`import snowflake.ml.modeling.parameters.enable_anonymous_sproc # noqa: F401`

## 1.5.0
## 1.5.0 (05-01-2024)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ bazel build --config=typecheck <your target>
Or you could run

```sh
./ci/type_check.sh -b <path_to_bazel>
./ci/type_check/type_check.sh -b <path_to_bazel>
```

You only need to specify `-b <path_to_bazel>` if your `bazel` is not in `$PATH` or is an alias.
Expand Down
4 changes: 2 additions & 2 deletions bazel/environments/conda-env-snowflake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ dependencies:
- sentence-transformers==2.2.2
- sentencepiece==0.1.99
- shap==0.42.1
- snowflake-connector-python==3.5.0
- snowflake-snowpark-python==1.11.1
- snowflake-connector-python==3.10.0
- snowflake-snowpark-python==1.15.0
- sphinx==5.0.2
- sqlparse==0.4.4
- tensorflow==2.12.0
Expand Down
4 changes: 2 additions & 2 deletions bazel/environments/conda-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ dependencies:
- sentence-transformers==2.2.2
- sentencepiece==0.1.99
- shap==0.42.1
- snowflake-connector-python==3.5.0
- snowflake-snowpark-python==1.11.1
- snowflake-connector-python==3.10.0
- snowflake-snowpark-python==1.15.0
- sphinx==5.0.2
- sqlparse==0.4.4
- tensorflow==2.12.0
Expand Down
4 changes: 2 additions & 2 deletions bazel/environments/conda-gpu-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ dependencies:
- sentence-transformers==2.2.2
- sentencepiece==0.1.99
- shap==0.42.1
- snowflake-connector-python==3.5.0
- snowflake-snowpark-python==1.11.1
- snowflake-connector-python==3.10.0
- snowflake-snowpark-python==1.15.0
- sphinx==5.0.2
- sqlparse==0.4.4
- tensorflow==2.12.0
Expand Down
4 changes: 2 additions & 2 deletions ci/conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:
noarch: python
package:
name: snowflake-ml-python
version: 1.5.2
version: 1.5.3
requirements:
build:
- python
Expand All @@ -42,7 +42,7 @@ requirements:
- scikit-learn>=1.2.1,<1.4
- scipy>=1.9,<2
- snowflake-connector-python>=3.5.0,<4
- snowflake-snowpark-python>=1.11.1,<2,!=1.12.0
- snowflake-snowpark-python>=1.15.0,<2
- sqlparse>=0.4,<1
- typing-extensions>=4.1.0,<5
- xgboost>=1.7.3,<2
Expand Down
2 changes: 1 addition & 1 deletion codegen/sklearn_wrapper_template.py_template
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class {transform.original_class_name}(BaseTransformer):
inspect.currentframe(), {transform.original_class_name}.__class__.__name__
),
api_calls=[Session.call],
custom_tags=dict([("autogen", True)]) if self._autogenerated else None,
custom_tags={{"autogen": True}} if self._autogenerated else None,
)
pd_df: pd.DataFrame = dataset.to_pandas(statement_params=statement_params)
pd_df.columns = dataset.columns
Expand Down
23 changes: 23 additions & 0 deletions docs/source/cortex.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
===================
snowflake.ml.cortex
===================

.. automodule:: snowflake.cortex
:noindex:

.. currentmodule:: snowflake.cortex

.. rubric:: Classes

.. autosummary::
:toctree: api/model

Complete
ExtractAnswer
Sentiment
Summarize
Translate

.. .. rubric:: Attributes
.. None
27 changes: 27 additions & 0 deletions docs/source/dataset.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
:orphan:

===========================
snowflake.ml.dataset
===========================

.. automodule:: snowflake.ml.dataset
:noindex:

.. currentmodule:: snowflake.ml.dataset

.. rubric:: Classes

.. autosummary::
:toctree: api/dataset

Dataset
DatasetReader
DatasetVersion

.. rubric:: Functions

.. autosummary::
:toctree: api/dataset

create_from_dataframe
load_dataset
26 changes: 26 additions & 0 deletions docs/source/feature_store.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
:orphan:

===========================
snowflake.ml.feature_store
===========================

.. automodule:: snowflake.ml.feature_store
:noindex:

.. currentmodule:: snowflake.ml.feature_store

.. rubric:: Classes

.. autosummary::
:toctree: api/feature_store

Entity
FeatureStore
FeatureView

.. rubric:: Functions

.. autosummary::
:toctree: api/feature_store

setup_feature_store
8 changes: 7 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ Portions of the Snowpark ML API Reference are derived from
| **scikit-learn** Copyright © 2007-2023 The scikit-learn developers. All rights reserved.
| **xgboost** Copyright © 2019 by xgboost contributors.
| **lightgbm** Copyright © Microsoft Corporation.
|
----

Table of Contents
=================

.. toctree::
:maxdepth: 3

modeling
cortex
dataset
feature_store
fileset
model
modeling
registry
7 changes: 2 additions & 5 deletions docs/source/model.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
===========================
==================
snowflake.ml.model
===========================
==================

.. automodule:: snowflake.ml.model
:noindex:

snowflake.ml.model
---------------------------------

.. currentmodule:: snowflake.ml.model

.. rubric:: Classes
Expand Down
68 changes: 34 additions & 34 deletions docs/source/modeling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ snowflake.ml.modeling.naive_bayes
.. autosummary::
:toctree: api/modeling

BernoulliNB
CategoricalNB
ComplementNB
GaussianNB
MultinomialNB
BernoulliNB
CategoricalNB
ComplementNB
GaussianNB
MultinomialNB


snowflake.ml.modeling.neighbors
Expand All @@ -401,15 +401,15 @@ snowflake.ml.modeling.neighbors
.. autosummary::
:toctree: api/modeling

KernelDensity
KNeighborsClassifier
KNeighborsRegressor
LocalOutlierFactor
NearestCentroid
NearestNeighbors
NeighborhoodComponentsAnalysis
RadiusNeighborsClassifier
RadiusNeighborsRegressor
KernelDensity
KNeighborsClassifier
KNeighborsRegressor
LocalOutlierFactor
NearestCentroid
NearestNeighbors
NeighborhoodComponentsAnalysis
RadiusNeighborsClassifier
RadiusNeighborsRegressor


snowflake.ml.modeling.neural_network
Expand All @@ -422,9 +422,9 @@ snowflake.ml.modeling.neural_network
.. autosummary::
:toctree: api/modeling

BernoulliRBM
MLPClassifier
MLPRegressor
BernoulliRBM
MLPClassifier
MLPRegressor

snowflake.ml.modeling.pipeline
-------------------------------------------
Expand All @@ -436,7 +436,7 @@ snowflake.ml.modeling.pipeline
.. autosummary::
:toctree: api/modeling

Pipeline
Pipeline

snowflake.ml.modeling.preprocessing
-----------------------------------------------
Expand Down Expand Up @@ -469,8 +469,8 @@ snowflake.ml.modeling.semi_supervised
.. autosummary::
:toctree: api/modeling

LabelPropagation
LabelSpreading
LabelPropagation
LabelSpreading


snowflake.ml.modeling.svm
Expand All @@ -483,12 +483,12 @@ snowflake.ml.modeling.svm
.. autosummary::
:toctree: api/modeling

LinearSVC
LinearSVR
NuSVC
NuSVR
SVC
SVR
LinearSVC
LinearSVR
NuSVC
NuSVR
SVC
SVR



Expand All @@ -502,10 +502,10 @@ snowflake.ml.modeling.tree
.. autosummary::
:toctree: api/modeling

DecisionTreeClassifier
DecisionTreeRegressor
ExtraTreeClassifier
ExtraTreeRegressor
DecisionTreeClassifier
DecisionTreeRegressor
ExtraTreeClassifier
ExtraTreeRegressor


snowflake.ml.modeling.xgboost
Expand All @@ -518,7 +518,7 @@ snowflake.ml.modeling.xgboost
.. autosummary::
:toctree: api/modeling

XGBClassifier
XGBRegressor
XGBRFClassifier
XGBRFRegressor
XGBClassifier
XGBRegressor
XGBRFClassifier
XGBRFRegressor
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ scipy==1.9.3
sentence-transformers==2.2.2
sentencepiece==0.1.99
shap==0.42.1
snowflake-connector-python[pandas]==3.5.0
snowflake-snowpark-python==1.11.1
snowflake-connector-python[pandas]==3.10.0
snowflake-snowpark-python==1.15.0
sphinx==5.0.2
sqlparse==0.4.4
starlette==0.27.0
Expand Down
6 changes: 3 additions & 3 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@
- transformers
- name_conda: snowflake-connector-python
name_pypi: snowflake-connector-python[pandas]
dev_version: 3.5.0
dev_version: 3.10.0
version_requirements: '>=3.5.0,<4'
- name: snowflake-snowpark-python
dev_version: 1.11.1
version_requirements: '>=1.11.1,<2,!=1.12.0'
dev_version: 1.15.0
version_requirements: '>=1.15.0,<2'
tags:
- deployment_core
- snowml_inference_alternative
Expand Down
Loading

0 comments on commit f0ff796

Please sign in to comment.