Skip to content

Instantly share code, notes, and snippets.

View rezamarzban's full-sized avatar
🎯
Focusing

rezamarzban

🎯
Focusing
View GitHub Profile
@YuriyGuts
YuriyGuts / github-clone-all.py
Last active January 1, 2024 11:20
Clone all public and private repositories from a specific GitHub user or organization
#!/usr/bin/env python
"""
Clone all public and private repositories from a GitHub user or organization.
Copyright (c) 2018 Yuriy Guts
usage: github-clone-all.py [-h] [--auth-user AUTH_USER]
[--auth-password AUTH_PASSWORD] [--clone-user USER]
[--clone-org ORG]
@alperyeg
alperyeg / load_mnist.py
Last active August 19, 2022 11:39
Loading MNIST dataset with scikit learn
from sklearn.datasets import fetch_openml
from sklearn.utils import check_random_state
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
def fetch_data(test_size=10000, randomize=False, standardize=True):
X, y = fetch_openml('mnist_784', version=1, return_X_y=True)
if randomize:
random_state = check_random_state(0)