diff --git a/activations.o b/activations.o new file mode 100644 index 0000000..caca90c Binary files /dev/null and b/activations.o differ diff --git a/main.o b/main.o new file mode 100644 index 0000000..d00254d Binary files /dev/null and b/main.o differ diff --git a/myprogram b/myprogram new file mode 100755 index 0000000..8160acd Binary files /dev/null and b/myprogram differ diff --git a/network.o b/network.o new file mode 100644 index 0000000..696cc49 Binary files /dev/null and b/network.o differ diff --git a/neurons.o b/neurons.o new file mode 100644 index 0000000..8e90ce4 Binary files /dev/null and b/neurons.o differ diff --git a/preprocessing.c b/preprocessing.c index 7201016..1faf0e7 100644 --- a/preprocessing.c +++ b/preprocessing.c @@ -149,6 +149,18 @@ Data *csv_to_samples(char *path_to_csv, int n_features, char *features_separator } add_sample_to_data(data, current_sample); } + Sample *current_sample = data->first_sample; + int number_of_train_samples = ((float)data->size*train_percent) / 100.0; //calculate number of training samples based on provided percentage + while(number_of_train_samples > 0) + { + current_sample = current_sample->next_sample; + number_of_train_samples--; + } + while(current_sample != NULL) + { + current_sample->t = TEST; + current_sample = current_sample->next_sample; + } fclose(file); }else { @@ -187,7 +199,7 @@ void print_data(const Data *data) temp_feature = temp_feature->next_feature; } temp_hotlabel = current_sample->first_hot; - printf("##> "); + printf(">##> "); while(temp_hotlabel != NULL) { printf("%f ", temp_hotlabel->value); diff --git a/preprocessing.o b/preprocessing.o new file mode 100644 index 0000000..b7b82c5 Binary files /dev/null and b/preprocessing.o differ diff --git a/randomness.o b/randomness.o new file mode 100644 index 0000000..5de73a7 Binary files /dev/null and b/randomness.o differ diff --git a/training.o b/training.o new file mode 100644 index 0000000..4b3b9fe Binary files /dev/null and b/training.o differ