8000 GitHub - Shiloh-S-Pitt/regi_feat_fore_class
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Shiloh-S-Pitt/regi_feat_fore_class

Repository files navigation

RegiFeatForeClass

The purpose of this repo is to house the data science utilites that make performing the base analysis for forecasting, regression, imbalance classification and feature engineering easier.

DevOps

Right now, only a single hello world test runs in CI, since all the tests fail (haven't reconciled dependencies and new package structure yet).

You can check the GitHub actions runs that creates a Poetry virtual environment, installs dependencies, runs the tests, and then caches the dependencies downloaded.

Right now it's triggered on pushes straight to dev. Eventually, you want to only push to feature branches, you want the CI to run optionally on the remote feature branch, and then you integrate the code back into dev. Opening a PR from your remote feature branch into dev should trigger a CI run, which has to pass in order for changes to be merged in, so no broken code makes it into dev.

Dev Setup

This repo uses Python 3.9.

[Edit: I had to upgrade it to Python 3.10 since installing matplotlib as a dependency doesn't support Python 3.9 - see this error message:]

poetry add numpy matplotlib pandas
Using version ^2.2.2 for numpy
Using version ^3.10.0 for matplotlib
Using version ^2.2.3 for pandas

Updating dependencies
Resolving dependencies... (0.1s)

The current project's supported Python range (>=3.9,<3.10) is not compatible with some of the required packages Python requirement:
  - matplotlib requires Python >=3.10, so it will not be satisfied for Python >=3.9,<3.10

Because matplotlib (3.10.0) requires Python >=3.10
 and no versions of matplotlib match >3.10.0,<4.0.0, matplotlib is forbidden.
So, because regifeatforeclass depends on matplotlib (^3.10.0), version solving failed.

  * Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For matplotlib, a possible solution would be to set the `python` property to "<empty>"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

Ensure you have the correct version of Python on your path:

which python
>>> <path-to-python>

python --version
>>> 3.10.x

Then, make sure you have poetry installed:

brew install poetry

Then, make sure you've switched directory to the project directory:

cd regi_feat_fore_class

Then, tell poetry to use the correct installation of the correct version of Python:

poetry env use $(which python) # assuming python is an alias to your Python 3.9
# or
poetry env use $(<path-to-python3.x>)

Then, install dependencies, and install the package in editable mode:

poetry install

Make sure to select the virtual environment created by Poetry for your VSCode IDE.

VSCode should detect your poetry virtual environment automatically, but if it doesn't, you have to options to manually grab the path to input the interpreter path:

poetry run which python
# or
poetry env info
>>> Virtualenv
Python:         3.9.21
Implementation: CPython
Path:           /Users/josephcorrado/Library/Caches/pypoetry/virtualenvs/regifeatforeclass-a1uQXpoi-py3.9
Executable:     /Users/josephcorrado/Library/Caches/pypoetry/virtualenvs/regifeatforeclass-a1uQXpoi-py3.9/bin/python
Valid:          True

It's the Executable path.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0