Changed to python3
This commit is contained in:
parent
719cec6d29
commit
4d27925b87
|
@ -34,8 +34,8 @@
|
||||||
<file leaf-file-name="prepare_data.py" pinned="false" current-in-tab="true">
|
<file leaf-file-name="prepare_data.py" pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/prepare_data.py">
|
<entry file="file://$PROJECT_DIR$/prepare_data.py">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="606">
|
<state relative-caret-position="288">
|
||||||
<caret line="606" column="50" lean-forward="true" selection-start-line="606" selection-start-column="4" selection-end-line="606" selection-end-column="50" />
|
<caret line="16" column="0" lean-forward="true" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#24#63#0" expanded="true" />
|
<element signature="e#24#63#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
@ -134,6 +134,7 @@
|
||||||
<find>h5f</find>
|
<find>h5f</find>
|
||||||
<find>generate_inputs</find>
|
<find>generate_inputs</find>
|
||||||
<find>split_number</find>
|
<find>split_number</find>
|
||||||
|
<find>StringIO</find>
|
||||||
</findStrings>
|
</findStrings>
|
||||||
</component>
|
</component>
|
||||||
<component name="Git.Settings">
|
<component name="Git.Settings">
|
||||||
|
@ -153,10 +154,10 @@
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectFrameBounds">
|
<component name="ProjectFrameBounds">
|
||||||
<option name="x" value="1985" />
|
<option name="x" value="65" />
|
||||||
<option name="y" value="24" />
|
<option name="y" value="24" />
|
||||||
<option name="width" value="1855" />
|
<option name="width" value="1855" />
|
||||||
<option name="height" value="1176" />
|
<option name="height" value="1056" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectView">
|
<component name="ProjectView">
|
||||||
<navigator currentView="ProjectPane" proportions="" version="1">
|
<navigator currentView="ProjectPane" proportions="" version="1">
|
||||||
|
@ -173,8 +174,8 @@
|
||||||
<foldersAlwaysOnTop value="true" />
|
<foldersAlwaysOnTop value="true" />
|
||||||
</navigator>
|
</navigator>
|
||||||
<panes>
|
<panes>
|
||||||
<pane id="Scope" />
|
|
||||||
<pane id="Scratches" />
|
<pane id="Scratches" />
|
||||||
|
<pane id="Scope" />
|
||||||
<pane id="ProjectPane">
|
<pane id="ProjectPane">
|
||||||
<subPane>
|
<subPane>
|
||||||
<PATH>
|
<PATH>
|
||||||
|
@ -482,7 +483,7 @@
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="1985" y="24" width="1855" height="1176" extended-state="6" />
|
<frame x="65" y="24" width="1855" height="1056" extended-state="6" />
|
||||||
<editor active="true" />
|
<editor active="true" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16375546" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16375546" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||||
|
@ -1009,8 +1010,8 @@
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/prepare_data.py">
|
<entry file="file://$PROJECT_DIR$/prepare_data.py">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="606">
|
<state relative-caret-position="288">
|
||||||
<caret line="606" column="50" lean-forward="true" selection-start-line="606" selection-start-column="4" selection-end-line="606" selection-end-column="50" />
|
<caret line="16" column="0" lean-forward="true" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#24#63#0" expanded="true" />
|
<element signature="e#24#63#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
|
0
__init__.py
Normal file
0
__init__.py
Normal file
|
@ -6,7 +6,6 @@ import numpy as np
|
||||||
import h5py
|
import h5py
|
||||||
import gc
|
import gc
|
||||||
import math
|
import math
|
||||||
import StringIO
|
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
def save_inputs(file_name, X, y):
|
def save_inputs(file_name, X, y):
|
||||||
|
@ -131,9 +130,9 @@ def create_dict():
|
||||||
dictionary.append(c)
|
dictionary.append(c)
|
||||||
if num_vowels > max_num_vowels:
|
if num_vowels > max_num_vowels:
|
||||||
max_num_vowels = num_vowels
|
max_num_vowels = num_vowels
|
||||||
except Exception, e:
|
except Exception:
|
||||||
print line - 1
|
print(line - 1)
|
||||||
print el
|
print(el)
|
||||||
break
|
break
|
||||||
line += 1
|
line += 1
|
||||||
dictionary = sorted(dictionary)
|
dictionary = sorted(dictionary)
|
||||||
|
@ -394,7 +393,7 @@ def generate_X_and_y_RAM_efficient(name, split_number):
|
||||||
current_part_generation += 1
|
current_part_generation += 1
|
||||||
num_all_vowels += 1
|
num_all_vowels += 1
|
||||||
if i%10000 == 0:
|
if i%10000 == 0:
|
||||||
print i
|
print(i)
|
||||||
# text_file.write("Purchase Amount: %s" % TotalAmount)
|
# text_file.write("Purchase Amount: %s" % TotalAmount)
|
||||||
j = 0
|
j = 0
|
||||||
# X.append(word)
|
# X.append(word)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user