<jupyter_start><jupyter_text><jupyter_code>!git clone https://github.com/ravindrabharathi/fsdl-active-learning2
%cd fsdl-active-learning2
# alternative way: if you cloned the repository to your GDrive account, you can mount it here

#from google.colab import drive
#drive.mount('/content/drive', force_remount=True)
#%cd /content/drive/MyDrive/fsdl-active-learning2
!pip3 install boltons wandb pytorch_lightning==1.2.8 pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 torchtext==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html # general lab / pytorch installs
!pip3 install modAL tensorflow skorch hdbscan # active learning project

%env PYTHONPATH=.:$PYTHONPATH
!wandb login your_personal_wb_key # enter personal w&b key here
!wandb init --project fdsl-active-learning --entity fsdl_active_learners
!python training/run_experiment.py --sampling_method=mb_clustering --data_class=DroughtWatch --model_class=ResnetClassifier --batch_size=64 --n_train_images=10000 --n_validation_images=10778 --pretrained=True --num_workers=4 --dropout=True --gpus=1 --max_epochs=20<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11671087533156499, 'fraction_numerical': 0.03713527851458886, 'mean_word_length': 6.075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '245889', 'license': 'MIT', 'n_tokens_mistral': 412, 'n_tokens_neox': 395, 'n_words': 84, 'path': 'notebooks/clone_repo_and_train.ipynb', 'repo_name': 'ravindrabharathi/fsdl-active-learning2', 'size': '1131'}