Git Product home page Git Product logo

modelstar's Introduction

Hi there, this is Modelstar ๐Ÿ‘‹

ModelStar is the easiest way to ship and manage machine learning solutions inside Snowflake, with only a few lines of SQL.

Modelstar is for the modern data stack

How does Modelstar work?

Who are the users?

  • Snowflake and DBT users.
  • Anyone who knows basic SQL.
  • Analyst, data engineers.

Why we build Modelstar?

Modelstar is our attempt to simplify ML for analysts. Our design philosophy is: Data is the most critical component in ML, so shipping ML solutions should be as easy as creating data objects.

Installation

To get started with Modelstar, install the Modelstar Python package into your local Python environment.

$ pip install modelstar

It's recommended to install modelstar within a Python virtual environment using pyenv, virtualenv, or poetry.

For a complete quickstart guide visit Modelstar-Quickstart

Tutorials

modelstar's People

Contributors

krish-adi avatar yiwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

evil0ctal yiwang

modelstar's Issues

Getting error on installation

Hello,
I am getting an error when trying to execute the register command.

When trying to run this command
$ modelstar register forecast:univariate_time_series_forecast
I get the error message below, as the last message in terminal:

snowflake.connector.errors.ProgrammingError: 001003 (42000): SQL compilation error:
syntax error line 1 at position 57 unexpected 'Drive'.
syntax error line 1 at position 62 unexpected '/'.
syntax error line 1 at position 71 unexpected 'Notebook'.
syntax error line 1 at position 79 unexpected '/'.
syntax error line 1 at position 96 unexpected '/'.
syntax error line 1 at position 107 unexpected '/'.
syntax error line 1 at position 112 unexpected '/'.
syntax error line 1 at position 126 unexpected '.'.
syntax error line 1 at position 131 unexpected '@DEV/univariate_time_series_forecast/V1'.

Any suggestions on how this can be fixed?

Can't find `.modelstar/session.registry.yaml`

Environment:

Python version: 3.0

How to reproduce:

Cloned the master branch;
Installed the new version;
Run > modelstar init my_project;
See the following errors.

Error message:

Traceback (most recent call last):
File "/Users/helix/Library/Caches/pypoetry/virtualenvs/modelstar-DLhzjXZT-py3.9/bin/modelstar", line 3, in
from modelstar.cli import main
File "/Users/helix/Documents/modelstar/modelstar/src/modelstar/init.py", line 6, in
session_registry = SessionRegistry()
File "/Users/helix/Documents/modelstar/modelstar/src/modelstar/utils/logging.py", line 56, in init
self.load_registry()
File "/Users/helix/Documents/modelstar/modelstar/src/modelstar/utils/logging.py", line 63, in load_registry
with open(self.file_path, 'w') as doc:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/helix/Documents/modelstar/.modelstar/session.registry.yaml'

`DateTime` is not properly parsed when writing a Snowflake table

When writing a DataFrame result from a CALL SPROC. The return DataFrame if it has a DateTIme column is not parsed properly and is written as a SQL Number type. This could possibly be solved by converting it first into a Snowflake_DF and then writing it to the Table.

# Convert the Pandas dataframe into a Snowflake dataframe
df_sf = snowpark_session.create_dataframe(df_pd)  
  
# Write the results of the dataframe into a target table
df_sf.write.mode("overwrite").save_as_table(destination_table)

Python Interpreter Error: module has no attribute

See this error when running > modelstar register example.py add_func

To reproduce:

  1. Clone the new repo, and update modelstar to 0.1.0 through > poetry install
  2. Create a new modelstar proj: >modelstar init test_1/
  3. Update project configs following the example on Notion: https://www.notion.so/modelstar/Vault-secrets-Do-NOT-share-41527185cb584244b7fe3bd035a856b7#061515bcdc2f4c40b877dc22ae9e8113
  4. Register add() in example.py using command > modelstar register example.py add, successfully.
  5. Rename add() to add_func() in example.py, run register command > modelstar register example.py add_func. It showed the following error:
(modelstar-py3.9) helix@PyWebIO test_1 % modelstar register example.py add_func
Registering `example.py` function... 
example.py check done.
/Users/helix/Documents/modelstar/modelstar/test_1/functions/example.py
("Python Interpreter Error:\nAttributeError: module 'example' has no attribute 'add_func' in function ADD_FUNC with handler example.add_func",)
  1. If I do not rename add(), instead, just append a new func called add_func(), and run > modelstar register example.py add_func, no errors show up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.