Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #36 from JaxGaussianProcesses/restructure
Browse files Browse the repository at this point in the history
Restructure modules
  • Loading branch information
daniel-dodd committed Jan 19, 2023
2 parents cb964d1 + 2ccf0f2 commit f32df9a
Show file tree
Hide file tree
Showing 37 changed files with 2,607 additions and 1,725 deletions.
16 changes: 15 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,18 @@ repos:
language: system
types: [python]
require_serial: true

- id: autoflake
name: autoflake
entry: autoflake
language: python
"types": [python]
require_serial: true
args:
- "--in-place"
- "--expand-star-imports"
- "--remove-all-unused-imports"
- "--remove-unused-variables"
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@

[![codecov](https://codecov.io/gh/JaxGaussianProcesses/JaxKern/branch/main/graph/badge.svg?token=8WD7YYMPFS)](https://codecov.io/gh/JaxGaussianProcesses/JaxKern)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/JaxGaussianProcesses/JaxKern/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/JaxGaussianProcesses/JaxKern/tree/main)
[![Documentation Status](https://readthedocs.org/projects/gpjax/badge/?version=latest)](https://gpjax.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/jaxkern.svg)](https://badge.fury.io/py/jaxkern)
[![Downloads](https://pepy.tech/badge/jaxkern)](https://pepy.tech/project/jaxkern)
[![Slack Invite](https://img.shields.io/badge/Slack_Invite--blue?style=social&logo=slack)](https://join.slack.com/t/gpjax/shared_invite/zt-1da57pmjn-rdBCVg9kApirEEn2E5Q2Zw)
43 changes: 35 additions & 8 deletions jaxkern/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,57 @@
# Copyright 2022 The JaxGaussianProcesses Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

"""JaxKern."""
from .kernels import (
from .base import ProductKernel, SumKernel
from .computations import (
ConstantDiagonalKernelComputation,
DenseKernelComputation,
DiagonalKernelComputation,
EigenKernelComputation,
)
from .nonstationary import Linear, Polynomial
from .stationary import (
RBF,
GraphKernel,
Matern12,
Matern32,
Matern52,
Polynomial,
ProductKernel,
SumKernel,
DenseKernelComputation,
DiagonalKernelComputation,
ConstantDiagonalKernelComputation,
RationalQuadratic,
Periodic,
PoweredExponential,
White,
)
from .non_euclidean import GraphKernel

__all__ = [
"RBF",
"GraphKernel",
"Matern12",
"Matern32",
"Matern52",
"Linear",
"Polynomial",
"ProductKernel",
"SumKernel",
"DenseKernelComputation",
"DiagonalKernelComputation",
"ConstantDiagonalKernelComputation",
"EigenKernelComputation",
"PoweredExponential",
"Periodic",
"RationalQuadratic",
"White",
]

from . import _version
Expand Down
Loading

0 comments on commit f32df9a

Please sign in to comment.