# Path: discomll/dataset.py
# class Data:
#     def __init__(self, data_tag, X_indices, **kwargs):
#     def generate_urls(self, first_url, last_url):


import numpy as np
import Orange
import discomll
from discomll import dataset


def breastcancer_disc_discomll(replication=2):
    data_tag = ["test:breast_cancer_disc" for i in range(replication)]

    train_data = dataset.Data(data_tag=data_tag,
                              data_type="chunk",
                              X_indices=xrange(1, 10),
                              X_meta=["d" for i in range(9)],
                              id_index=0,
                              y_index=10,
                              delimiter=",",
                              y_map=["2", "4"])

    data_tag = ["test:breast_cancer_disc_test" for i in range(replication)]
    test_data = dataset.Data(data_tag=data_tag,
                             data_type="chunk",
                             X_indices=xrange(1, 10),
                             X_meta=["d" for i in range(9)],
                             id_index=0,
                             y_index=10,
                             delimiter=",",
                             y_map=["2", "4"],
                             missing_vals=["?"])

    return train_data, test_data


def breastcancer_cont_discomll(replication=2):
    data_tag = ["test:breast_cancer_cont" for _ in range(replication)]

# Path: discomll/dataset.py
# class Data:
#     def __init__(self, data_tag, X_indices, **kwargs):
#     def generate_urls(self, first_url, last_url):


# Path: discomll/tests/datasets.py
import numpy as np
import Orange
import discomll
from discomll import dataset



def breastcancer_disc_discomll(replication=2):
    data_tag = ["test:breast_cancer_disc" for i in range(replication)]

    train_data = dataset.Data(data_tag=data_tag,
                              data_type="chunk",
                              X_indices=xrange(1, 10),
                              X_meta=["d" for i in range(9)],
                              id_index=0,
                              y_index=10,
                              delimiter=",",
                              y_map=["2", "4"])

    data_tag = ["test:breast_cancer_disc_test" for i in range(replication)]
    test_data = dataset.Data(data_tag=data_tag,
                             data_type="chunk",
                             X_indices=xrange(1, 10),
                             X_meta=["d" for i in range(9)],
                             id_index=0,
                             y_index=10,
                             delimiter=",",
                             y_map=["2", "4"],
                             missing_vals=["?"])

    return train_data, test_data


def breastcancer_cont_discomll(replication=2):
    data_tag = ["test:breast_cancer_cont" for _ in range(replication)]

    train_data = dataset.Data(data_tag=data_tag,