Skip to content

Commit

Permalink
fix module name spelling (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziw-liu committed Oct 21, 2024
1 parent 5a9dd14 commit 3064677
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions applications/contrastive_phenotyping/evaluation/PC_vs_CF.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from sklearn.decomposition import PCA

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import dataset_of_tracks
from viscy.representation.evalutation.feature import (
from viscy.representation.evaluation import dataset_of_tracks
from viscy.representation.evaluation.feature import (
FeatureExtractor as FE,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from sklearn.decomposition import PCA

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import dataset_of_tracks
from viscy.representation.evalutation.feature import (
from viscy.representation.evaluation import dataset_of_tracks
from viscy.representation.evaluation.feature import (
FeatureExtractor as FE,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import seaborn as sns

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evalutation.dimensionality_reduction import (
from viscy.representation.evaluation import load_annotation
from viscy.representation.evaluation.dimensionality_reduction import (
compute_pca,
compute_umap,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from umap import UMAP

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation.distance import (
from viscy.representation.evaluation.distance import (
calculate_cosine_similarity_cell,
compute_displacement,
compute_displacement_mean_std,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation.distance import (
from viscy.representation.evaluation.distance import (
calculate_normalized_euclidean_distance_cell,
compute_displacement_mean_std_full,
)
Expand Down
4 changes: 2 additions & 2 deletions applications/contrastive_phenotyping/evaluation/grad_attr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from viscy.data.triplet import TripletDataModule
from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.engine import ContrastiveEncoder, ContrastiveModule
from viscy.representation.evalutation import load_annotation
from viscy.representation.evalutation.lca import (
from viscy.representation.evaluation import load_annotation
from viscy.representation.evaluation.lca import (
AssembledClassifier,
fit_logistic_regression,
linear_from_binary_logistic_regression,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from pathlib import Path

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evalutation.lca import fit_logistic_regression
from viscy.representation.evaluation import load_annotation
from viscy.representation.evaluation.lca import fit_logistic_regression

# %%
TRAIN_FOVS = ["/A/3/7", "/A/3/8", "/A/3/9", "/B/4/6", "/B/4/7"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pandas as pd

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evaluation import load_annotation

# %% Paths and parameters.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from umap import UMAP

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evaluation import load_annotation

# %% Paths and parameters.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from umap import UMAP

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import (
from viscy.representation.evaluation import (
dataset_of_tracks,
load_annotation,
)
Expand Down
4 changes: 2 additions & 2 deletions applications/contrastive_phenotyping/figures/classify_feb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from tqdm import tqdm

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evalutation.dimensionality_reduction import compute_pca
from viscy.representation.evaluation import load_annotation
from viscy.representation.evaluation.dimensionality_reduction import compute_pca

# %% Defining Paths for February Dataset
feb_features_path = Path(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sklearn.metrics import classification_report, confusion_matrix

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evaluation import load_annotation

# %% Defining Paths for February Dataset
feb_features_path = Path(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from umap import UMAP

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation import load_annotation
from viscy.representation.evaluation import load_annotation

# %% Paths and parameters.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

sys.path.append("/hpc/mydata/soorya.pradeep/scratch/viscy_infection_phenotyping/VisCy")
# from viscy.data.triplet import TripletDataModule
from viscy.representation.evalutation import dataset_of_tracks
from viscy.representation.evaluation import dataset_of_tracks

# %% input parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from skimage.exposure import rescale_intensity

from viscy.representation.embedding_writer import read_embedding_dataset
from viscy.representation.evalutation.dimensionality_reduction import compute_umap
from viscy.representation.evaluation.dimensionality_reduction import compute_umap

# %%
t_slice = slice(18, 33)
Expand Down
2 changes: 1 addition & 1 deletion tests/representation/test_lca.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch
from sklearn.linear_model import LogisticRegression

from viscy.representation.evalutation.lca import linear_from_binary_logistic_regression
from viscy.representation.evaluation.lca import linear_from_binary_logistic_regression


def test_linear_from_logistic_regression():
Expand Down
2 changes: 1 addition & 1 deletion viscy/representation/embedding_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from viscy.data.triplet import INDEX_COLUMNS
from viscy.representation.engine import ContrastivePrediction
from viscy.representation.evalutation.dimensionality_reduction import (
from viscy.representation.evaluation.dimensionality_reduction import (
_fit_transform_umap,
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3064677

Please sign in to comment.