April 2018
Beginner
552 pages
13h 58m
English
import numpy as np import neurolab as nl
in_file = 'words.data'
# Number of datapoints to load from the input file num_of_datapoints = 20
original_labels = 'omandig' # Number of distinct characters num_of_charect = len(original_labels)
train_param = int(0.9 * num_of_datapoints) test_param = num_of_datapoints - train_param
s_index = 6 e_index = -1
information = [] labels = [] with open(in_file, 'r') as f: for line ...