Skip to content

Commit

Permalink
fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nestordemeure committed Mar 21, 2020
1 parent d3bf8a6 commit 81d22a2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ If you are a gaussian process expert, you might be better served by [gpytorch](h

## Usage

You can install our librarie with:

```
pip install git+https://github.com/nestordemeure/tabularGP.git
```

Our API was built to be compatible with [fastai V1's tabular models](https://docs.fast.ai/tabular.html) and should be familiar to fastai's users:

```python
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56
from distutils.core import setup

setup(
Expand All @@ -9,7 +10,7 @@
author = 'NestorDemeure',
# author_email = 'your.email@domain.com',
url = 'https://github.com/nestordemeure/tabularGP',
download_url = 'https://github.com/nestordemeure/tabularGP/archive/v1.0.tar.gz',
download_url = 'https://github.com/nestordemeure/tabularGP/archive/v1.1.tar.gz',
keywords = ['gaussian-processes', 'tabular-data', 'deep-learning', 'pytorch', 'fastai'],
install_requires=[
'numpy',
Expand Down
4 changes: 2 additions & 2 deletions tabularGP/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from torch import nn
import torch
# my imports
from utils import Scale
from universalCombinator import PositiveMultiply, PositiveProductOfSum
from tabularGP.utils import Scale
from tabularGP.universalCombinator import PositiveMultiply, PositiveProductOfSum

__all__ = ['CategorialKernel', 'ContinuousKernel', 'TabularKernel',
'IndexKernelSingle', 'IndexKernel', 'HammingKernel',
Expand Down
10 changes: 5 additions & 5 deletions tabularGP/tabularGP.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from torch import nn, Tensor
from fastai.tabular import DataBunch, ListSizes, ifnone, Learner
# my imports
from loss_functions import gp_gaussian_marginal_log_likelihood, gp_is_greater_log_likelihood, gp_metric_wrapper
from utils import psd_safe_cholesky, freeze, unfreeze
from kernel import ProductOfSumsKernel, TabularKernel
from trainset_selection import select_trainset
from prior import ConstantPrior
from tabularGP.loss_functions import gp_gaussian_marginal_log_likelihood, gp_is_greater_log_likelihood, gp_metric_wrapper
from tabularGP.utils import psd_safe_cholesky, freeze, unfreeze
from tabularGP.kernel import ProductOfSumsKernel, TabularKernel
from tabularGP.trainset_selection import select_trainset
from tabularGP.prior import ConstantPrior

__all__ = ['TabularGPModel', 'TabularGPLearner', 'tabularGP_learner']

Expand Down
2 changes: 1 addition & 1 deletion tabularGP/universalCombinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import torch.nn.functional as F
import torch
# my imports
from utils import soft_clamp_max, magnitude, magnitude_reciprocal
from tabularGP.utils import soft_clamp_max, magnitude, magnitude_reciprocal

__all__ = ['PositiveLinear', 'PositiveMultiply', 'Multiply', 'Polynomial', 'PositiveProductOfSum']

Expand Down

0 comments on commit 81d22a2

Please sign in to comment.