Skip to content

Tutorial "02_EBD_preprocessing_and_vanilla_colab": Old imports #27

Description

@GiuGiglio

Step #1 Import Libraries:
Imports
"from MIOFlow.plots import plot_losses
from MIOFlow.utils import set_seeds "
do not exist anymore and seem to have stayed from a previous version of MIOFlow.

Also, set_seeds(0) does not work.

Fixed it with replacing the code with this:
"import os
import urllib.request
import zipfile
import shutil

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

import scanpy as sc
import phate
import torch

The only MIOFlow module that survived the 2.0 refactor

from MIOFlow.mioflow import MIOFlow

Replaces the deleted from MIOFlow.utils import set_seeds

torch.manual_seed(0)
np.random.seed(0)

use_cuda = torch.cuda.is_available()
print(f'Using CUDA: {use_cuda}')"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions