Tutorial "02_EBD_preprocessing_and_vanilla_colab": Old imports

Open Beginner friendly
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
jupyter-notebook, python, pytorch

Research direction

Open the 02_EBD_preprocessing_and_vanilla_colab tutorial and run Step #1 in Colab, starting with the imports from MIOFlow.plots, MIOFlow.utils, and MIOFlow.mioflow. Update the stale imports and seed setup so the notebook's preprocessing tutorial runs without import or set_seeds errors.

Written by the indexing model from the issue text.

Description

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}')"

Dominant language
Jupyter Notebook
Stars
43
Forks
9
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KrishnaswamyLab/MIOFlow

All issues in KrishnaswamyLab/MIOFlow

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.