Skip to content

Commit

Permalink
Fixes pypi setup errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGoertz committed Nov 26, 2021
1 parent 2f7f366 commit c9915b4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ docs/source/gumbi
htmlcov
*_backup*
nupack/*
dist/*
*.pub
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ Read in some data and store it as a Gumbi `DataSet`:
import gumbi as gmb
import seaborn as sns
cars = sns.load_dataset('mpg').dropna()

ds = gmb.DataSet(cars,
outputs=['mpg', 'acceleration'],
log_vars=['mpg', 'acceleration', 'weight', 'horsepower', 'displacement'])
ds = gmb.DataSet(cars, outputs=['mpg', 'acceleration'], log_vars=['mpg', 'acceleration', 'weight', 'horsepower', 'displacement'])
```

Create a Gumbi `GP` object and fit a model that predicts *mpg* from *horsepower*:
Expand All @@ -38,14 +35,19 @@ Make predictions and plot!
```python
X = gp.prepare_grid()
y = gp.predict_grid()

gmb.ParrayPlotter(X, y).plot()
```

More complex GPs are also possible, such as correlated multi-input and multi-output systems. See the docs for more examples.

## Installation

### Via pip

`pip install gumbi`

### Bleeding edge

* Clone the repo and navigate to the new directory
* `git clone https://gitlab.com/JohnGoertz/gumbi gumbi`
* `cd gumbi`
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ dependencies:
- uncertainties
- ipympl
- mkl
- pip:
- .
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
DESCRIPTION = "Gaussian Process Model Building Interface"
AUTHOR = "John Goertz"
AUTHOR_EMAIL = ""
URL = ""
LICENSE = ""
URL = "https://github.com/JohnGoertz/Gumbi"
LICENSE = "Apache 2.0"

PROJECT_ROOT = pl.Path(__file__).resolve().parent
REQUIREMENTS = PROJECT_ROOT / "requirements.txt"
Expand All @@ -28,6 +28,7 @@
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]

Expand All @@ -37,7 +38,10 @@
author="John Goertz",
author_email="",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=long_description,
url=URL,
license=LICENSE,
python_requires='>=3.9',
packages=find_packages(),
package_data={'': ['*.pkl', '*.mplstyle']},
Expand Down

0 comments on commit c9915b4

Please sign in to comment.