Skip to content

Commit

Permalink
fix: module exports
Browse files Browse the repository at this point in the history
  • Loading branch information
f-aguzzi committed Jun 26, 2024
1 parent a8d5132 commit f302243
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 13 deletions.
10 changes: 10 additions & 0 deletions src/chemfusekit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
from beartype import BeartypeConf
from beartype.claw import beartype_this_package
beartype_this_package(conf=BeartypeConf(violation_type=TypeError))

import base
import df
import knn
import lda
import lr
import pca
import plsda
import svm
import utils
File renamed without changes.
4 changes: 2 additions & 2 deletions src/chemfusekit/knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from sklearn.neighbors import KNeighborsClassifier

from chemfusekit.__utils import run_split_test, print_confusion_matrix, print_table, GraphMode
from .__base import BaseClassifierSettings, BaseClassifier, BaseDataModel
from .utils import run_split_test, print_confusion_matrix, print_table, GraphMode
from .base import BaseClassifierSettings, BaseClassifier, BaseDataModel


class KNNSettings(BaseClassifierSettings):
Expand Down
6 changes: 3 additions & 3 deletions src/chemfusekit/lda.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LD
from sklearn.model_selection import cross_val_score

from chemfusekit.__utils import graph_output, run_split_test, GraphMode
from chemfusekit.__utils import print_confusion_matrix, print_table
from .__base import BaseDataModel, BaseClassifier, BaseClassifierSettings, BaseReducer, ReducerDataModel
from .utils import graph_output, run_split_test, GraphMode
from .utils import print_confusion_matrix, print_table
from .base import BaseDataModel, BaseClassifier, BaseClassifierSettings, BaseReducer, ReducerDataModel


class LDADataModel(BaseDataModel):
Expand Down
4 changes: 2 additions & 2 deletions src/chemfusekit/lr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import pandas as pd
from sklearn.linear_model import LogisticRegression

from chemfusekit.__utils import run_split_test, print_confusion_matrix, print_table
from .__base import BaseClassifierSettings, BaseDataModel, BaseClassifier, ReducerDataModel
from chemfusekit.utils import run_split_test, print_confusion_matrix, print_table
from .base import BaseClassifierSettings, BaseDataModel, BaseClassifier, ReducerDataModel


class LRSettings(BaseClassifierSettings):
Expand Down
4 changes: 2 additions & 2 deletions src/chemfusekit/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import scipy.stats
from sklearn.decomposition import PCA as PC

from chemfusekit.__utils import print_table, GraphMode
from .__base import BaseDataModel, BaseReducer, BaseSettings, ReducerDataModel
from .utils import print_table, GraphMode
from .base import BaseDataModel, BaseReducer, BaseSettings, ReducerDataModel


class PCASettings(BaseSettings):
Expand Down
4 changes: 2 additions & 2 deletions src/chemfusekit/plsda.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from sklearn.cross_decomposition import PLSRegression as PLSR
from sklearn.model_selection import cross_val_score

from chemfusekit.__utils import print_table, print_confusion_matrix, run_split_test, GraphMode
from .__base import BaseClassifierSettings, BaseDataModel, BaseClassifier, BaseReducer, ReducerDataModel
from .utils import print_table, print_confusion_matrix, run_split_test, GraphMode
from .base import BaseClassifierSettings, BaseDataModel, BaseClassifier, BaseReducer, ReducerDataModel


class PLSDASettings(BaseClassifierSettings):
Expand Down
4 changes: 2 additions & 2 deletions src/chemfusekit/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from sklearn.svm import SVC

from chemfusekit.__utils import run_split_test, print_confusion_matrix
from .__base import BaseClassifierSettings, BaseClassifier, BaseDataModel
from .utils import run_split_test, print_confusion_matrix
from .base import BaseClassifierSettings, BaseClassifier, BaseDataModel


class SVMSettings(BaseClassifierSettings):
Expand Down
File renamed without changes.

0 comments on commit f302243

Please sign in to comment.