Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix module name spelling #190

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading