Skip to content

Commit

Permalink
prepares n_samples = 10000 samples to data
Browse files Browse the repository at this point in the history
  • Loading branch information
markolalovic committed Jul 9, 2024
1 parent 142effa commit 868f884
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/prepare_data.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
''' prepare_data.py: Saves n_samples images of digits to numpy array.'''
''' prepare_data.py: Saves n_samples = 10000 images of digits to numpy array.'''

from __future__ import print_function # if you are using Python 2
import numpy as np
from sklearn.datasets import fetch_openml
import sys

# better use: n_samples = 10000
n_samples = 1000

n_samples = 10000
if len(sys.argv) == 2:
print('Setting n_samples to: %i' % (n_samples))
n_samples = int(sys.argv[1])
Expand Down

0 comments on commit 868f884

Please sign in to comment.