Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bghojogh committed May 31, 2021
1 parent 4f063ec commit c403007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions functions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import offsetbox
from skimage.transform import resize
# from skimage.transform import resize


def save_variable(variable, name_of_variable, path_to_save='./'):
Expand Down Expand Up @@ -150,7 +150,7 @@ def plot_components(X_projected, labels, which_dimensions_to_plot, images=None,
fig, ax = plt.subplots(figsize=(10, 10))
# ax.plot(X_projected[:, 0], X_projected[:, 1], '.k', markersize=markersize)
ax.scatter(X_projected[:, 0], X_projected[:, 1], c=labels, cmap=colormap, edgecolors='k')
images = resize(images, (images.shape[0], images.shape[1]*image_scale, images.shape[2]*image_scale), order=5, preserve_range=True, mode="constant")
#### images = resize(images, (images.shape[0], images.shape[1]*image_scale, images.shape[2]*image_scale), order=5, preserve_range=True, mode="constant")
if images is not None:
min_dist_2 = (thumb_frac * max(X_projected.max(0) - X_projected.min(0))) ** 2
shown_images = np.array([2 * X_projected.max(0)])
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
python==3.7.6
numpy==1.18.1
matplotlib==3.1.3
scikit-learn==0.22.1
scikit-image==0.16.2
scikit-learn==0.22.1

0 comments on commit c403007

Please sign in to comment.