Created
March 30, 2016 15:47
-
-
Save eqs/f160215d0fe9763379b65df7d6227d5d to your computer and use it in GitHub Desktop.
データセットを生成するスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on 03/31/16 00:31:59 | |
円状のデータセットを生成するスクリプト | |
@author: eqs | |
""" | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import sklearn.datasets as datasets | |
np.random.seed(0) | |
points, labels = datasets.make_circles(n_samples=1000, shuffle=False, noise=0.075, factor=0.6) | |
data = np.c_[points, labels] | |
np.savetxt('dataset.txt', data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment