Create feature files

Create feature files.

Before this script is run, the should get executed to generate a handwriting_datasets.pickle with exactly those symbols that should also be present in the feature files and only raw_data that might get used for the test-, validation- and training set.


Return the parser object for this script.


Get a training, validation and a testset as well as a dictionary that maps each formula_id to an index (0...nr_of_formulas).


path_to_data :

a pickle file that contains a list of datasets

hwrt.create_ffiles.main(feature_folder, create_learning_curve=False)

main function of

hwrt.create_ffiles.make_hdf5(dataset_name, feature_count, data, output_filename, create_learning_curve)

Create the hdf5 file.


filename :

name of the file that hdf5_create will use to create the hdf5 file.

feature_count : integer

number of features

data : list of tuples

data format (‘feature_string’, ‘label’)

hwrt.create_ffiles.prepare_dataset(dataset, formula_id2index, feature_list, is_traindata, do_normalization=False)

Transform each instance of dataset to a (Features, Label) tuple.

hwrt.create_ffiles.training_set_multiplication(training_set, mult_queue)

Multiply the training set by all methods listed in mult_queue.


training_set :

set of all recordings that will be used for training

mult_queue :

list of all algorithms that will take one recording and generate more than one.


mutliple recordings

Previous topic


Next topic


This Page