2ab8c1444facbd46df8767a5badda5b9f1a50c29,tpot/tpot.py,,main,#,741
Before Change
print("{}\t=\t{}".format(arg, args.__dict__[arg]))
print("")
input_data = pd.read_csv(args.INPUT_FILE, sep=args.INPUT_SEPARATOR)
if "Class" in input_data.columns.values:
input_data.rename(columns={"Class": "class"}, inplace=True)
training_indices, testing_indices = train_test_split(input_data.index,
stratify=input_data["class"].values,
train_size=0.75,
test_size=0.25,
random_state=args.RANDOM_STATE)
training_features = input_data.loc[training_indices].drop("class", axis=1).values
training_classes = input_data.loc[training_indices, "class"].values
testing_features = input_data.loc[testing_indices].drop("class", axis=1).values
testing_classes = input_data.loc[testing_indices, "class"].values
tpot = TPOT(generations=args.GENERATIONS, population_size=args.POPULATION_SIZE,
mutation_rate=args.MUTATION_RATE, crossover_rate=args.CROSSOVER_RATE,
After Change
print("")
input_data = np.recfromcsv("PATH/TO/DATA/FILE", sep="COLUMN_SEPARATOR")
features = input_data.view((np.float64, len(input_data.dtype.names)))
np.delete(features, input_data.dtype.names.index("class"))
training_features, testing_features, training_classes, testing_classes = \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name:
Method Name: main
Project Name: graphbrain/graphbrain
Commit Name: 01a34bf5aa3085a0df5a02f87a8a7ab685c084d7
Time: 2018-12-29
Author: telmo@telmomenezes.net
File Name: gb/reader/stages/hypergen.py
Class Name:
Method Name: learn_nn
Project Name: shubhomoydas/ad_examples
Commit Name: c52c6ca9ee149950f4c98f6ef4251237f9b6e4df
Time: 2018-01-02
Author: smd.shubhomoydas@gmail.com
File Name: python/aad/test_tree_properties.py
Class Name:
Method Name: test_node_values