Created character_based_cnn
This commit is contained in:
		
							parent
							
								
									658c55d280
								
							
						
					
					
						commit
						2c16f10e13
					
				
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -87,3 +87,7 @@ ENV/
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Rope project settings
 | 
					# Rope project settings
 | 
				
			||||||
.ropeproject
 | 
					.ropeproject
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Custom
 | 
				
			||||||
 | 
					data/
 | 
				
			||||||
 | 
					character_based_ffnn/internal_representations/inputs/
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								.idea/accetuation.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.idea/accetuation.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<module type="PYTHON_MODULE" version="4">
 | 
				
			||||||
 | 
					  <component name="NewModuleRootManager">
 | 
				
			||||||
 | 
					    <content url="file://$MODULE_DIR$" />
 | 
				
			||||||
 | 
					    <orderEntry type="jdk" jdkName="Python 3.5.2 virtualenv at ~/Developement/virtual_environments/masters" jdkType="Python SDK" />
 | 
				
			||||||
 | 
					    <orderEntry type="sourceFolder" forTests="false" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="TestRunnerService">
 | 
				
			||||||
 | 
					    <option name="PROJECT_TEST_RUNNER" value="Unittests" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</module>
 | 
				
			||||||
							
								
								
									
										6
									
								
								.idea/encodings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/encodings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="Encoding">
 | 
				
			||||||
 | 
					    <file url="PROJECT" charset="UTF-8" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										22
									
								
								.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.2 virtualenv at ~/Developement/virtual_environments/masters" project-jdk-type="Python SDK" />
 | 
				
			||||||
 | 
					  <component name="SvnConfiguration">
 | 
				
			||||||
 | 
					    <configuration>$USER_HOME$/.subversion</configuration>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="masterDetails">
 | 
				
			||||||
 | 
					    <states>
 | 
				
			||||||
 | 
					      <state key="ScopeChooserConfigurable.UI">
 | 
				
			||||||
 | 
					        <settings>
 | 
				
			||||||
 | 
					          <splitter-proportions>
 | 
				
			||||||
 | 
					            <option name="proportions">
 | 
				
			||||||
 | 
					              <list>
 | 
				
			||||||
 | 
					                <option value="0.2" />
 | 
				
			||||||
 | 
					              </list>
 | 
				
			||||||
 | 
					            </option>
 | 
				
			||||||
 | 
					          </splitter-proportions>
 | 
				
			||||||
 | 
					        </settings>
 | 
				
			||||||
 | 
					      </state>
 | 
				
			||||||
 | 
					    </states>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="ProjectModuleManager">
 | 
				
			||||||
 | 
					    <modules>
 | 
				
			||||||
 | 
					      <module fileurl="file://$PROJECT_DIR$/.idea/accetuation.iml" filepath="$PROJECT_DIR$/.idea/accetuation.iml" />
 | 
				
			||||||
 | 
					    </modules>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										952
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										952
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@ -0,0 +1,952 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="ChangeListManager">
 | 
				
			||||||
 | 
					    <list default="true" id="8a8ba9af-e1a4-433a-9968-475192610776" name="Default" comment="">
 | 
				
			||||||
 | 
					      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/theano_tutorial/logistic_regression_loop.py" />
 | 
				
			||||||
 | 
					    </list>
 | 
				
			||||||
 | 
					    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
 | 
				
			||||||
 | 
					    <option name="TRACKING_ENABLED" value="true" />
 | 
				
			||||||
 | 
					    <option name="SHOW_DIALOG" value="false" />
 | 
				
			||||||
 | 
					    <option name="HIGHLIGHT_CONFLICTS" value="true" />
 | 
				
			||||||
 | 
					    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
 | 
				
			||||||
 | 
					    <option name="LAST_RESOLUTION" value="IGNORE" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="CreatePatchCommitExecutor">
 | 
				
			||||||
 | 
					    <option name="PATCH_PATH" value="" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
 | 
				
			||||||
 | 
					  <component name="FileEditorManager">
 | 
				
			||||||
 | 
					    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
 | 
				
			||||||
 | 
					      <file leaf-file-name="test.py" pinned="false" current-in-tab="true">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					              <caret line="76" column="9" lean-forward="false" selection-start-line="76" selection-start-column="9" selection-end-line="76" selection-end-column="9" />
 | 
				
			||||||
 | 
					              <folding>
 | 
				
			||||||
 | 
					                <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					              </folding>
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					      <file leaf-file-name="logistic_regression.py" pinned="false" current-in-tab="false">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="774">
 | 
				
			||||||
 | 
					              <caret line="45" column="35" lean-forward="false" selection-start-line="45" selection-start-column="33" selection-end-line="45" selection-end-column="35" />
 | 
				
			||||||
 | 
					              <folding>
 | 
				
			||||||
 | 
					                <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					              </folding>
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					      <file leaf-file-name="logistic_regression_loop.py" pinned="false" current-in-tab="false">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression_loop.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="828">
 | 
				
			||||||
 | 
					              <caret line="48" column="20" lean-forward="false" selection-start-line="48" selection-start-column="20" selection-end-line="48" selection-end-column="20" />
 | 
				
			||||||
 | 
					              <folding />
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					      <file leaf-file-name="tutorial_derivates.py" pinned="false" current-in-tab="false">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="576">
 | 
				
			||||||
 | 
					              <caret line="34" column="25" lean-forward="false" selection-start-line="34" selection-start-column="25" selection-end-line="34" selection-end-column="25" />
 | 
				
			||||||
 | 
					              <folding>
 | 
				
			||||||
 | 
					                <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					              </folding>
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					      <file leaf-file-name="tutorial_loop.py" pinned="false" current-in-tab="false">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_loop.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="792">
 | 
				
			||||||
 | 
					              <caret line="45" column="65" lean-forward="false" selection-start-line="45" selection-start-column="20" selection-end-line="45" selection-end-column="65" />
 | 
				
			||||||
 | 
					              <folding>
 | 
				
			||||||
 | 
					                <element signature="e#0#13#0" expanded="true" />
 | 
				
			||||||
 | 
					              </folding>
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					      <file leaf-file-name="tutorial_conditions.py" pinned="false" current-in-tab="false">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_conditions.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="18">
 | 
				
			||||||
 | 
					              <caret line="1" column="31" lean-forward="false" selection-start-line="1" selection-start-column="31" selection-end-line="1" selection-end-column="31" />
 | 
				
			||||||
 | 
					              <folding>
 | 
				
			||||||
 | 
					                <element signature="e#55#85#0" expanded="true" />
 | 
				
			||||||
 | 
					              </folding>
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					      <file leaf-file-name="theanoTest.py" pinned="false" current-in-tab="false">
 | 
				
			||||||
 | 
					        <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					          <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					            <state relative-caret-position="0">
 | 
				
			||||||
 | 
					              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					              <folding />
 | 
				
			||||||
 | 
					            </state>
 | 
				
			||||||
 | 
					          </provider>
 | 
				
			||||||
 | 
					        </entry>
 | 
				
			||||||
 | 
					      </file>
 | 
				
			||||||
 | 
					    </leaf>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="FileTemplateManagerImpl">
 | 
				
			||||||
 | 
					    <option name="RECENT_TEMPLATES">
 | 
				
			||||||
 | 
					      <list>
 | 
				
			||||||
 | 
					        <option value="Python Script" />
 | 
				
			||||||
 | 
					      </list>
 | 
				
			||||||
 | 
					    </option>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="FindInProjectRecents">
 | 
				
			||||||
 | 
					    <findStrings>
 | 
				
			||||||
 | 
					      <find>nearly_zeros</find>
 | 
				
			||||||
 | 
					      <find>rand</find>
 | 
				
			||||||
 | 
					      <find>u</find>
 | 
				
			||||||
 | 
					    </findStrings>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="Git.Settings">
 | 
				
			||||||
 | 
					    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="IdeDocumentHistory">
 | 
				
			||||||
 | 
					    <option name="CHANGED_PATHS">
 | 
				
			||||||
 | 
					      <list>
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/theano_tutorial/test.py" />
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py" />
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/theano_tutorial/tutorial_conditions.py" />
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/theano_tutorial/tutorial_loop.py" />
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/theano_tutorial/logistic_regression.py" />
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/theano_tutorial/logistic_regression_loop.py" />
 | 
				
			||||||
 | 
					      </list>
 | 
				
			||||||
 | 
					    </option>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="ProjectFrameBounds">
 | 
				
			||||||
 | 
					    <option name="x" value="65" />
 | 
				
			||||||
 | 
					    <option name="y" value="24" />
 | 
				
			||||||
 | 
					    <option name="width" value="1855" />
 | 
				
			||||||
 | 
					    <option name="height" value="1056" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="ProjectView">
 | 
				
			||||||
 | 
					    <navigator currentView="ProjectPane" proportions="" version="1">
 | 
				
			||||||
 | 
					      <flattenPackages />
 | 
				
			||||||
 | 
					      <showMembers />
 | 
				
			||||||
 | 
					      <showModules />
 | 
				
			||||||
 | 
					      <showLibraryContents />
 | 
				
			||||||
 | 
					      <hideEmptyPackages />
 | 
				
			||||||
 | 
					      <abbreviatePackageNames />
 | 
				
			||||||
 | 
					      <autoscrollToSource />
 | 
				
			||||||
 | 
					      <autoscrollFromSource />
 | 
				
			||||||
 | 
					      <sortByType />
 | 
				
			||||||
 | 
					      <manualOrder />
 | 
				
			||||||
 | 
					      <foldersAlwaysOnTop value="true" />
 | 
				
			||||||
 | 
					    </navigator>
 | 
				
			||||||
 | 
					    <panes>
 | 
				
			||||||
 | 
					      <pane id="Scratches" />
 | 
				
			||||||
 | 
					      <pane id="ProjectPane" />
 | 
				
			||||||
 | 
					      <pane id="Scope" />
 | 
				
			||||||
 | 
					    </panes>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="PropertiesComponent">
 | 
				
			||||||
 | 
					    <property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
 | 
				
			||||||
 | 
					    <property name="last_opened_file_path" value="$PROJECT_DIR$/../dragon_hack_2017" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="RecentsManager">
 | 
				
			||||||
 | 
					    <key name="CopyFile.RECENT_KEYS">
 | 
				
			||||||
 | 
					      <recent name="$PROJECT_DIR$/theano_tutorial" />
 | 
				
			||||||
 | 
					    </key>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="RunManager" selected="Python.logistic_regression">
 | 
				
			||||||
 | 
					    <configuration default="true" type="PythonConfigurationType" factoryName="Python">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs>
 | 
				
			||||||
 | 
					        <env name="PYTHONUNBUFFERED" value="1" />
 | 
				
			||||||
 | 
					      </envs>
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="PARAMETERS" value="" />
 | 
				
			||||||
 | 
					      <option name="SHOW_COMMAND_LINE" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="true" type="Tox" factoryName="Tox">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs />
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="true" type="tests" factoryName="Attests">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs />
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="CLASS_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="METHOD_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="FOLDER_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="TEST_TYPE" value="TEST_SCRIPT" />
 | 
				
			||||||
 | 
					      <option name="PATTERN" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PATTERN" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="true" type="tests" factoryName="Doctests">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs />
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="CLASS_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="METHOD_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="FOLDER_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="TEST_TYPE" value="TEST_SCRIPT" />
 | 
				
			||||||
 | 
					      <option name="PATTERN" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PATTERN" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="true" type="tests" factoryName="Nosetests">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs />
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="CLASS_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="METHOD_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="FOLDER_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="TEST_TYPE" value="TEST_SCRIPT" />
 | 
				
			||||||
 | 
					      <option name="PATTERN" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PATTERN" value="false" />
 | 
				
			||||||
 | 
					      <option name="PARAMS" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PARAM" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="true" type="tests" factoryName="Unittests">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs />
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="CLASS_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="METHOD_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="FOLDER_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="TEST_TYPE" value="TEST_SCRIPT" />
 | 
				
			||||||
 | 
					      <option name="PATTERN" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PATTERN" value="false" />
 | 
				
			||||||
 | 
					      <option name="PUREUNITTEST" value="true" />
 | 
				
			||||||
 | 
					      <option name="PARAMS" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PARAM" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="true" type="tests" factoryName="py.test">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs />
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="CLASS_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="METHOD_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="FOLDER_NAME" value="" />
 | 
				
			||||||
 | 
					      <option name="TEST_TYPE" value="TEST_SCRIPT" />
 | 
				
			||||||
 | 
					      <option name="PATTERN" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PATTERN" value="false" />
 | 
				
			||||||
 | 
					      <option name="testToRun" value="" />
 | 
				
			||||||
 | 
					      <option name="keywords" value="" />
 | 
				
			||||||
 | 
					      <option name="params" value="" />
 | 
				
			||||||
 | 
					      <option name="USE_PARAM" value="false" />
 | 
				
			||||||
 | 
					      <option name="USE_KEYWORD" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="false" name="tutorial_derivates" type="PythonConfigurationType" factoryName="Python">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs>
 | 
				
			||||||
 | 
					        <env name="PYTHONUNBUFFERED" value="1" />
 | 
				
			||||||
 | 
					      </envs>
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="$PROJECT_DIR$/../virtual_environments/masters/bin/python" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/theano_tutorial" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py" />
 | 
				
			||||||
 | 
					      <option name="PARAMETERS" value="" />
 | 
				
			||||||
 | 
					      <option name="SHOW_COMMAND_LINE" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="false" name="tutorial_conditions" type="PythonConfigurationType" factoryName="Python">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs>
 | 
				
			||||||
 | 
					        <env name="PYTHONUNBUFFERED" value="1" />
 | 
				
			||||||
 | 
					      </envs>
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="$PROJECT_DIR$/../virtual_environments/masters/bin/python" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/theano_tutorial" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/theano_tutorial/tutorial_conditions.py" />
 | 
				
			||||||
 | 
					      <option name="PARAMETERS" value="" />
 | 
				
			||||||
 | 
					      <option name="SHOW_COMMAND_LINE" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="false" name="tutorial_loop" type="PythonConfigurationType" factoryName="Python">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs>
 | 
				
			||||||
 | 
					        <env name="PYTHONUNBUFFERED" value="1" />
 | 
				
			||||||
 | 
					      </envs>
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="$PROJECT_DIR$/../virtual_environments/masters/bin/python" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/theano_tutorial" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/theano_tutorial/tutorial_loop.py" />
 | 
				
			||||||
 | 
					      <option name="PARAMETERS" value="" />
 | 
				
			||||||
 | 
					      <option name="SHOW_COMMAND_LINE" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="false" name="theano_tutorial" type="PythonConfigurationType" factoryName="Python">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs>
 | 
				
			||||||
 | 
					        <env name="PYTHONUNBUFFERED" value="1" />
 | 
				
			||||||
 | 
					      </envs>
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="$PROJECT_DIR$/../virtual_environments/masters/bin/python" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/theano_tutorial" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/theano_tutorial/test.py" />
 | 
				
			||||||
 | 
					      <option name="PARAMETERS" value="" />
 | 
				
			||||||
 | 
					      <option name="SHOW_COMMAND_LINE" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <configuration default="false" name="logistic_regression" type="PythonConfigurationType" factoryName="Python">
 | 
				
			||||||
 | 
					      <option name="INTERPRETER_OPTIONS" value="" />
 | 
				
			||||||
 | 
					      <option name="PARENT_ENVS" value="true" />
 | 
				
			||||||
 | 
					      <envs>
 | 
				
			||||||
 | 
					        <env name="PYTHONUNBUFFERED" value="1" />
 | 
				
			||||||
 | 
					      </envs>
 | 
				
			||||||
 | 
					      <option name="SDK_HOME" value="$PROJECT_DIR$/../virtual_environments/masters/bin/python" />
 | 
				
			||||||
 | 
					      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/theano_tutorial" />
 | 
				
			||||||
 | 
					      <option name="IS_MODULE_SDK" value="false" />
 | 
				
			||||||
 | 
					      <option name="ADD_CONTENT_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <option name="ADD_SOURCE_ROOTS" value="true" />
 | 
				
			||||||
 | 
					      <module name="accetuation" />
 | 
				
			||||||
 | 
					      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/theano_tutorial/logistic_regression.py" />
 | 
				
			||||||
 | 
					      <option name="PARAMETERS" value="" />
 | 
				
			||||||
 | 
					      <option name="SHOW_COMMAND_LINE" value="false" />
 | 
				
			||||||
 | 
					      <method />
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					    <list size="5">
 | 
				
			||||||
 | 
					      <item index="0" class="java.lang.String" itemvalue="Python.tutorial_derivates" />
 | 
				
			||||||
 | 
					      <item index="1" class="java.lang.String" itemvalue="Python.tutorial_conditions" />
 | 
				
			||||||
 | 
					      <item index="2" class="java.lang.String" itemvalue="Python.tutorial_loop" />
 | 
				
			||||||
 | 
					      <item index="3" class="java.lang.String" itemvalue="Python.theano_tutorial" />
 | 
				
			||||||
 | 
					      <item index="4" class="java.lang.String" itemvalue="Python.logistic_regression" />
 | 
				
			||||||
 | 
					    </list>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="ShelveChangesManager" show_recycled="false">
 | 
				
			||||||
 | 
					    <option name="remove_strategy" value="false" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="TaskManager">
 | 
				
			||||||
 | 
					    <task active="true" id="Default" summary="Default task">
 | 
				
			||||||
 | 
					      <changelist id="8a8ba9af-e1a4-433a-9968-475192610776" name="Default" comment="" />
 | 
				
			||||||
 | 
					      <created>1486720239842</created>
 | 
				
			||||||
 | 
					      <option name="number" value="Default" />
 | 
				
			||||||
 | 
					      <option name="presentableId" value="Default" />
 | 
				
			||||||
 | 
					      <updated>1486720239842</updated>
 | 
				
			||||||
 | 
					    </task>
 | 
				
			||||||
 | 
					    <task id="LOCAL-00001" summary="More tutorial">
 | 
				
			||||||
 | 
					      <created>1492074623429</created>
 | 
				
			||||||
 | 
					      <option name="number" value="00001" />
 | 
				
			||||||
 | 
					      <option name="presentableId" value="LOCAL-00001" />
 | 
				
			||||||
 | 
					      <option name="project" value="LOCAL" />
 | 
				
			||||||
 | 
					      <updated>1492074623429</updated>
 | 
				
			||||||
 | 
					    </task>
 | 
				
			||||||
 | 
					    <option name="localTasksCounter" value="2" />
 | 
				
			||||||
 | 
					    <servers />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="ToolWindowManager">
 | 
				
			||||||
 | 
					    <frame x="65" y="24" width="1855" height="1056" extended-state="6" />
 | 
				
			||||||
 | 
					    <editor active="false" />
 | 
				
			||||||
 | 
					    <layout>
 | 
				
			||||||
 | 
					      <window_info id="Project" active="true" 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="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32985386" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32985386" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32985386" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
 | 
				
			||||||
 | 
					      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39979124" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					    </layout>
 | 
				
			||||||
 | 
					    <layout-to-restore>
 | 
				
			||||||
 | 
					      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32985386" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32985386" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32985386" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <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="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
 | 
				
			||||||
 | 
					      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
 | 
				
			||||||
 | 
					      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39979124" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
 | 
				
			||||||
 | 
					    </layout-to-restore>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="VcsContentAnnotationSettings">
 | 
				
			||||||
 | 
					    <option name="myLimit" value="2678400000" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="VcsManagerConfiguration">
 | 
				
			||||||
 | 
					    <MESSAGE value="More tutorial" />
 | 
				
			||||||
 | 
					    <option name="LAST_COMMIT_MESSAGE" value="More tutorial" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="XDebuggerManager">
 | 
				
			||||||
 | 
					    <breakpoint-manager>
 | 
				
			||||||
 | 
					      <option name="time" value="4" />
 | 
				
			||||||
 | 
					    </breakpoint-manager>
 | 
				
			||||||
 | 
					    <watches-manager />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="editorHistoryManager">
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_loop.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#13#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_conditions.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="18">
 | 
				
			||||||
 | 
					          <caret line="1" column="31" lean-forward="false" selection-start-line="1" selection-start-column="31" selection-end-line="1" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#55#85#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1332">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="432">
 | 
				
			||||||
 | 
					          <caret line="26" column="22" lean-forward="false" selection-start-line="26" selection-start-column="22" selection-end-line="26" selection-end-column="22" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="false" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="846">
 | 
				
			||||||
 | 
					          <caret line="49" column="31" lean-forward="true" selection-start-line="49" selection-start-column="31" selection-end-line="49" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="6" lean-forward="false" selection-start-line="76" selection-start-column="2" selection-end-line="76" selection-end-column="6" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theanoTest.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="0">
 | 
				
			||||||
 | 
					          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_conditions.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="18">
 | 
				
			||||||
 | 
					          <caret line="1" column="31" lean-forward="false" selection-start-line="1" selection-start-column="31" selection-end-line="1" selection-end-column="31" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#55#85#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_derivates.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="576">
 | 
				
			||||||
 | 
					          <caret line="34" column="25" lean-forward="false" selection-start-line="34" selection-start-column="25" selection-end-line="34" selection-end-column="25" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/tutorial_loop.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="792">
 | 
				
			||||||
 | 
					          <caret line="45" column="65" lean-forward="false" selection-start-line="45" selection-start-column="20" selection-end-line="45" selection-end-column="65" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#13#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression_loop.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="828">
 | 
				
			||||||
 | 
					          <caret line="48" column="20" lean-forward="false" selection-start-line="48" selection-start-column="20" selection-end-line="48" selection-end-column="20" />
 | 
				
			||||||
 | 
					          <folding />
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/logistic_regression.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="774">
 | 
				
			||||||
 | 
					          <caret line="45" column="35" lean-forward="false" selection-start-line="45" selection-start-column="33" selection-end-line="45" selection-end-column="35" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#12#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					    <entry file="file://$PROJECT_DIR$/theano_tutorial/test.py">
 | 
				
			||||||
 | 
					      <provider selected="true" editor-type-id="text-editor">
 | 
				
			||||||
 | 
					        <state relative-caret-position="1368">
 | 
				
			||||||
 | 
					          <caret line="76" column="9" lean-forward="false" selection-start-line="76" selection-start-column="9" selection-end-line="76" selection-end-column="9" />
 | 
				
			||||||
 | 
					          <folding>
 | 
				
			||||||
 | 
					            <element signature="e#0#18#0" expanded="true" />
 | 
				
			||||||
 | 
					          </folding>
 | 
				
			||||||
 | 
					        </state>
 | 
				
			||||||
 | 
					      </provider>
 | 
				
			||||||
 | 
					    </entry>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										364
									
								
								prepare_data.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										364
									
								
								prepare_data.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,364 @@
 | 
				
			|||||||
 | 
					# -*- coding: utf-8 -*-
 | 
				
			||||||
 | 
					from __future__ import unicode_literals
 | 
				
			||||||
 | 
					# text in Western (Windows 1252)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import numpy as np
 | 
				
			||||||
 | 
					import h5py
 | 
				
			||||||
 | 
					import gc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def save_inputs(file_name, X, y):
 | 
				
			||||||
 | 
					    h5f = h5py.File(file_name, 'w')
 | 
				
			||||||
 | 
					    adict=dict(X=X, y=y)
 | 
				
			||||||
 | 
					    for k,v in adict.items():
 | 
				
			||||||
 | 
					        h5f.create_dataset(k,data=v)
 | 
				
			||||||
 | 
					    h5f.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def create_and_save_inputs(file_name):
 | 
				
			||||||
 | 
					    X, y, X_pure = generate_full_vowel_matrix_inputs()
 | 
				
			||||||
 | 
					    h5f = h5py.File(file_name, 'w')
 | 
				
			||||||
 | 
					    adict=dict(X=X, y=y, X_pure=X_pure)
 | 
				
			||||||
 | 
					    for k,v in adict.items():
 | 
				
			||||||
 | 
					        h5f.create_dataset(k,data=v)
 | 
				
			||||||
 | 
					    h5f.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def load_inputs(file_name):
 | 
				
			||||||
 | 
					    h5f = h5py.File(file_name,'r')
 | 
				
			||||||
 | 
					    X = h5f['X'][:]
 | 
				
			||||||
 | 
					    y = h5f['y'][:]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    h5f.close()
 | 
				
			||||||
 | 
					    return X, y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def save_model(model, file_name):
 | 
				
			||||||
 | 
					    h5f = h5py.File(file_name, 'w')
 | 
				
			||||||
 | 
					    adict=dict(W1=model['W1'], b1=model['b1'], W2=model['W2'], b2=model['b2'])
 | 
				
			||||||
 | 
					    for k,v in adict.items():
 | 
				
			||||||
 | 
					        h5f.create_dataset(k,data=v)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    h5f.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def load_model(file_name):
 | 
				
			||||||
 | 
					    h5f = h5py.File(file_name,'r')
 | 
				
			||||||
 | 
					    model = {}
 | 
				
			||||||
 | 
					    W1.set_value(h5f['W1'][:])
 | 
				
			||||||
 | 
					    b1.set_value(h5f['b1'][:])
 | 
				
			||||||
 | 
					    W2.set_value(h5f['W2'][:])
 | 
				
			||||||
 | 
					    b2.set_value(h5f['b2'][:])
 | 
				
			||||||
 | 
					    h5f.close()
 | 
				
			||||||
 | 
					    return model
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def read_content():
 | 
				
			||||||
 | 
					    print('READING CONTENT...')
 | 
				
			||||||
 | 
					    with open('../../data/SlovarIJS_BESEDE_utf8.lex') as f:
 | 
				
			||||||
 | 
					        content = f.readlines()
 | 
				
			||||||
 | 
					    print('CONTENT READ SUCCESSFULY')
 | 
				
			||||||
 | 
					    return [x.decode('utf8').split('\t') for x in content]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def is_vowel(word_list, position, vowels):
 | 
				
			||||||
 | 
					    if word_list[position] in vowels:
 | 
				
			||||||
 | 
					        return True
 | 
				
			||||||
 | 
					    if word_list[position] == u'r' and     (position - 1 < 0 or word_list[position - 1] not in vowels) and     (position + 1 >= len(word_list) or word_list[position + 1] not in vowels):
 | 
				
			||||||
 | 
					        return True
 | 
				
			||||||
 | 
					    return False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def create_dict():
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    content = read_content()
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    print('CREATING DICTIONARY...')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # CREATE dictionary AND max_word
 | 
				
			||||||
 | 
					    accetuated_vowels = [u'à', u'á', u'ä', u'é', u'ë', u'ì', u'í', u'î', u'ó', u'ô', u'ö', u'ú', u'ü']
 | 
				
			||||||
 | 
					    default_vowels = [u'a', u'e', u'i', u'o', u'u']
 | 
				
			||||||
 | 
					    vowels = []
 | 
				
			||||||
 | 
					    vowels.extend(accetuated_vowels)
 | 
				
			||||||
 | 
					    vowels.extend(default_vowels)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    dictionary = ['']
 | 
				
			||||||
 | 
					    line = 0
 | 
				
			||||||
 | 
					    max_word = 0
 | 
				
			||||||
 | 
					    # ADD 'EMPTY' VOWEL
 | 
				
			||||||
 | 
					    max_num_vowels = 0
 | 
				
			||||||
 | 
					    for el in content:
 | 
				
			||||||
 | 
					        num_vowels = 0
 | 
				
			||||||
 | 
					        i = 0
 | 
				
			||||||
 | 
					        try: 
 | 
				
			||||||
 | 
					            if len(el[3]) > max_word:
 | 
				
			||||||
 | 
					                max_word = len(el[3])
 | 
				
			||||||
 | 
					            if len(el[0]) > max_word:
 | 
				
			||||||
 | 
					                max_word = len(el[0])
 | 
				
			||||||
 | 
					            for c in list(el[3]):
 | 
				
			||||||
 | 
					                if is_vowel(list(el[3]), i, vowels):
 | 
				
			||||||
 | 
					                    num_vowels += 1
 | 
				
			||||||
 | 
					                if c not in dictionary:
 | 
				
			||||||
 | 
					                    dictionary.append(c)
 | 
				
			||||||
 | 
					                i += 1
 | 
				
			||||||
 | 
					            for c in list(el[0]):
 | 
				
			||||||
 | 
					                if c not in dictionary:
 | 
				
			||||||
 | 
					                    dictionary.append(c)
 | 
				
			||||||
 | 
					            if num_vowels > max_num_vowels:
 | 
				
			||||||
 | 
					                max_num_vowels = num_vowels
 | 
				
			||||||
 | 
					        except Exception, e:
 | 
				
			||||||
 | 
					            print line - 1
 | 
				
			||||||
 | 
					            print el
 | 
				
			||||||
 | 
					            break
 | 
				
			||||||
 | 
					        line += 1
 | 
				
			||||||
 | 
					    dictionary = sorted(dictionary)
 | 
				
			||||||
 | 
					    max_num_vowels += 1
 | 
				
			||||||
 | 
					    print('DICTIONARY CREATION SUCCESSFUL!')
 | 
				
			||||||
 | 
					    return dictionary, max_word, max_num_vowels, content, vowels, accetuated_vowels
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# GENERATE X and y
 | 
				
			||||||
 | 
					def generate_presentable_y(accetuations_list, word_list, max_num_vowels):
 | 
				
			||||||
 | 
					    while len(accetuations_list) < 2:
 | 
				
			||||||
 | 
					        accetuations_list.append(0)
 | 
				
			||||||
 | 
					    if len(accetuations_list) > 2:
 | 
				
			||||||
 | 
					        accetuations_list = accetuations_list[:2]
 | 
				
			||||||
 | 
					    accetuations_list = np.array(accetuations_list)
 | 
				
			||||||
 | 
					    final_position = accetuations_list[0] + max_num_vowels * accetuations_list[1]
 | 
				
			||||||
 | 
					    return final_position
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					def shuffle_inputs(X, y, X_pure):
 | 
				
			||||||
 | 
					    s = np.arange(X.shape[0])
 | 
				
			||||||
 | 
					    np.random.shuffle(s)
 | 
				
			||||||
 | 
					    X = X[s]
 | 
				
			||||||
 | 
					    y = y[s]
 | 
				
			||||||
 | 
					    X_pure = X_pure[s]
 | 
				
			||||||
 | 
					    return X, y, X_pure
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_inputs():
 | 
				
			||||||
 | 
					    dictionary, max_word, max_num_vowels, content, vowels, accetuated_vowels = create_dict()
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    print('GENERATING X AND y...')
 | 
				
			||||||
 | 
					    X = np.zeros((len(content), max_word*len(dictionary)))
 | 
				
			||||||
 | 
					    y = np.zeros((len(content), max_num_vowels * max_num_vowels ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    i = 0
 | 
				
			||||||
 | 
					    for el in content:
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        for c in list(el[0]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            for d in dictionary:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    X[i][index + j * max_word] = 1
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        word_accetuations = []
 | 
				
			||||||
 | 
					        num_vowels = 0
 | 
				
			||||||
 | 
					        for c in list(el[3]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            if is_vowel(el[3], j, vowels):
 | 
				
			||||||
 | 
					                num_vowels += 1
 | 
				
			||||||
 | 
					            for d in accetuated_vowels:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    word_accetuations.append(num_vowels)
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        y[i][generate_presentable_y(word_accetuations, list(el[3]), max_num_vowels)] = 1
 | 
				
			||||||
 | 
					        i += 1
 | 
				
			||||||
 | 
					    print('GENERATION SUCCESSFUL!')
 | 
				
			||||||
 | 
					    print('SHUFFELING INPUTS...')
 | 
				
			||||||
 | 
					    X, y = shuffle_inputs(X, y)
 | 
				
			||||||
 | 
					    print('INPUTS SHUFFELED!')
 | 
				
			||||||
 | 
					    return X, y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_matrix_inputs():
 | 
				
			||||||
 | 
					    dictionary, max_word, max_num_vowels, content, vowels, accetuated_vowels = create_dict()
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    print('GENERATING X AND y...')
 | 
				
			||||||
 | 
					    # X = np.zeros((len(content), max_word*len(dictionary)))
 | 
				
			||||||
 | 
					    y = np.zeros((len(content), max_num_vowels * max_num_vowels ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    X = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    i = 0
 | 
				
			||||||
 | 
					    for el in content:
 | 
				
			||||||
 | 
					        # j = 0
 | 
				
			||||||
 | 
					        word = []
 | 
				
			||||||
 | 
					        for c in list(el[0]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            character = np.zeros(len(dictionary))
 | 
				
			||||||
 | 
					            for d in dictionary:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    # X[i][index + j * max_word] = 1
 | 
				
			||||||
 | 
					                    character[index] = 1
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            word.append(character)
 | 
				
			||||||
 | 
					            # j += 1
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        X.append(word)
 | 
				
			||||||
 | 
					        word_accetuations = []
 | 
				
			||||||
 | 
					        num_vowels = 0
 | 
				
			||||||
 | 
					        for c in list(el[3]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            if is_vowel(el[3], j, vowels):
 | 
				
			||||||
 | 
					                num_vowels += 1
 | 
				
			||||||
 | 
					            for d in accetuated_vowels:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    word_accetuations.append(num_vowels)
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        y[i][generate_presentable_y(word_accetuations, list(el[3]), max_num_vowels)] = 1
 | 
				
			||||||
 | 
					        i += 1
 | 
				
			||||||
 | 
					    X = np.array(X)
 | 
				
			||||||
 | 
					    print('GENERATION SUCCESSFUL!')
 | 
				
			||||||
 | 
					    print('SHUFFELING INPUTS...')
 | 
				
			||||||
 | 
					    X, y = shuffle_inputs(X, y)
 | 
				
			||||||
 | 
					    print('INPUTS SHUFFELED!')
 | 
				
			||||||
 | 
					    return X, y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_full_matrix_inputs():
 | 
				
			||||||
 | 
					    dictionary, max_word, max_num_vowels, content, vowels, accetuated_vowels = create_dict()
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    print('GENERATING X AND y...')
 | 
				
			||||||
 | 
					    # X = np.zeros((len(content), max_word*len(dictionary)))
 | 
				
			||||||
 | 
					    y = np.zeros((len(content), max_num_vowels * max_num_vowels ))
 | 
				
			||||||
 | 
					    X = np.zeros((len(content), max_word, len(dictionary)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    i = 0
 | 
				
			||||||
 | 
					    for el in content:
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        # word = []
 | 
				
			||||||
 | 
					        for c in list(el[0]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            # character = np.zeros(len(dictionary))
 | 
				
			||||||
 | 
					            for d in dictionary:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    X[i][j][index] = 1
 | 
				
			||||||
 | 
					                    # character[index] = 1
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            # word.append(character)
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        # X.append(word)
 | 
				
			||||||
 | 
					        word_accetuations = []
 | 
				
			||||||
 | 
					        num_vowels = 0
 | 
				
			||||||
 | 
					        for c in list(el[3]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            if is_vowel(el[3], j, vowels):
 | 
				
			||||||
 | 
					                num_vowels += 1
 | 
				
			||||||
 | 
					            for d in accetuated_vowels:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    word_accetuations.append(num_vowels)
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        y[i][generate_presentable_y(word_accetuations, list(el[3]), max_num_vowels)] = 1
 | 
				
			||||||
 | 
					        i += 1
 | 
				
			||||||
 | 
					    # X = np.array(X)
 | 
				
			||||||
 | 
					    print('GENERATION SUCCESSFUL!')
 | 
				
			||||||
 | 
					    print('SHUFFELING INPUTS...')
 | 
				
			||||||
 | 
					    X, y = shuffle_inputs(X, y)
 | 
				
			||||||
 | 
					    print('INPUTS SHUFFELED!')
 | 
				
			||||||
 | 
					    return X, y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def count_vowels(content, vowels):
 | 
				
			||||||
 | 
					    num_all_vowels = 0
 | 
				
			||||||
 | 
					    for el in content:
 | 
				
			||||||
 | 
					        for m in range(len(el[0])):
 | 
				
			||||||
 | 
					            if is_vowel(list(el[0]), m, vowels):
 | 
				
			||||||
 | 
					                num_all_vowels += 1
 | 
				
			||||||
 | 
					    return num_all_vowels
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_full_vowel_matrix_inputs():
 | 
				
			||||||
 | 
					    dictionary, max_word, max_num_vowels, content, vowels, accetuated_vowels = create_dict()
 | 
				
			||||||
 | 
					    gc.collect()
 | 
				
			||||||
 | 
					    # print (2018553 * max_word * len(dictionary) / (2**30.0))
 | 
				
			||||||
 | 
					    print('GENERATING X AND y...')
 | 
				
			||||||
 | 
					    # X = np.zeros((len(content), max_word*len(dictionary)))
 | 
				
			||||||
 | 
					    y = np.zeros((len(content), max_num_vowels * max_num_vowels ))
 | 
				
			||||||
 | 
					    # X = np.zeros((2018553, max_word, len(dictionary)))
 | 
				
			||||||
 | 
					    X_pure = []
 | 
				
			||||||
 | 
					    X = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    i = 0
 | 
				
			||||||
 | 
					    for el in content:
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        # word = []
 | 
				
			||||||
 | 
					        X_el = np.zeros((max_word, len(dictionary)))
 | 
				
			||||||
 | 
					        for c in list(el[0]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            # character = np.zeros(len(dictionary))
 | 
				
			||||||
 | 
					            for d in dictionary:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    X_el[j][index] = 1
 | 
				
			||||||
 | 
					                    # character[index] = 1
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            # word.append(character)
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        # for c in list(el[0]):
 | 
				
			||||||
 | 
					        vowel_i = 0
 | 
				
			||||||
 | 
					        for m in range(len(el[0])):
 | 
				
			||||||
 | 
					            if is_vowel(list(el[0]), m, vowels):
 | 
				
			||||||
 | 
					                X.append(X_el)
 | 
				
			||||||
 | 
					                X_pure.append(vowel_i)
 | 
				
			||||||
 | 
					                vowel_i += 1
 | 
				
			||||||
 | 
					        j = 0
 | 
				
			||||||
 | 
					        # X.append(word)
 | 
				
			||||||
 | 
					        word_accetuations = []
 | 
				
			||||||
 | 
					        num_vowels = 0
 | 
				
			||||||
 | 
					        for c in list(el[3]):
 | 
				
			||||||
 | 
					            index = 0
 | 
				
			||||||
 | 
					            if is_vowel(el[3], j, vowels):
 | 
				
			||||||
 | 
					                num_vowels += 1
 | 
				
			||||||
 | 
					            for d in accetuated_vowels:
 | 
				
			||||||
 | 
					                if c == d:
 | 
				
			||||||
 | 
					                    word_accetuations.append(num_vowels)
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                index += 1
 | 
				
			||||||
 | 
					            j += 1
 | 
				
			||||||
 | 
					        y[i][generate_presentable_y(word_accetuations, list(el[3]), max_num_vowels)] = 1
 | 
				
			||||||
 | 
					        i += 1
 | 
				
			||||||
 | 
					    # print(len(X))
 | 
				
			||||||
 | 
					    # del X_pure
 | 
				
			||||||
 | 
					    # del dictionary, max_word, max_num_vowels, content, vowels, accetuated_vowels
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    X = np.array(X)
 | 
				
			||||||
 | 
					    X_pure = np.array(X_pure)
 | 
				
			||||||
 | 
					    print('GENERATION SUCCESSFUL!')
 | 
				
			||||||
 | 
					    print('SHUFFELING INPUTS...')
 | 
				
			||||||
 | 
					    X, y, X_pure = shuffle_inputs(X, y, X_pure)
 | 
				
			||||||
 | 
					    print('INPUTS SHUFFELED!')
 | 
				
			||||||
 | 
					    return X, y, X_pure
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def decode_position(y, max_num_vowels):
 | 
				
			||||||
 | 
					    max_el = 0
 | 
				
			||||||
 | 
					    i = 0
 | 
				
			||||||
 | 
					    pos = -1
 | 
				
			||||||
 | 
					    for el in y:
 | 
				
			||||||
 | 
					        if el > max_el:
 | 
				
			||||||
 | 
					            max_el = el
 | 
				
			||||||
 | 
					            pos = i
 | 
				
			||||||
 | 
					        i += 1
 | 
				
			||||||
 | 
					    return [pos % max_num_vowels, pos / max_num_vowels]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def decode_position_from_number(y, max_num_vowels):
 | 
				
			||||||
 | 
					    return [y % max_num_vowels, y / max_num_vowels]
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_input_from_word(word, max_word, dictionary):
 | 
				
			||||||
 | 
					    x = np.zeros(max_word*len(dictionary))
 | 
				
			||||||
 | 
					    j = 0
 | 
				
			||||||
 | 
					    for c in list(word):
 | 
				
			||||||
 | 
					        index = 0
 | 
				
			||||||
 | 
					        for d in dictionary:
 | 
				
			||||||
 | 
					            if c == d:
 | 
				
			||||||
 | 
					                x[index + j * max_word] = 1
 | 
				
			||||||
 | 
					                break
 | 
				
			||||||
 | 
					            index += 1
 | 
				
			||||||
 | 
					        j += 1
 | 
				
			||||||
 | 
					    return x
 | 
				
			||||||
							
								
								
									
										47
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,47 @@
 | 
				
			|||||||
 | 
					appnope==0.1.0
 | 
				
			||||||
 | 
					backports.ssl-match-hostname==3.4.0.2
 | 
				
			||||||
 | 
					certifi==2015.4.28
 | 
				
			||||||
 | 
					decorator==4.0.2
 | 
				
			||||||
 | 
					funcsigs==0.4
 | 
				
			||||||
 | 
					functools32==3.2.3.post2
 | 
				
			||||||
 | 
					gnureadline==6.3.3
 | 
				
			||||||
 | 
					ipykernel==4.0.3
 | 
				
			||||||
 | 
					ipython==4.0.0
 | 
				
			||||||
 | 
					ipython-genutils==0.1.0
 | 
				
			||||||
 | 
					ipywidgets==4.0.2
 | 
				
			||||||
 | 
					Jinja2==2.8
 | 
				
			||||||
 | 
					jsonschema==2.5.1
 | 
				
			||||||
 | 
					jupyter==1.0.0
 | 
				
			||||||
 | 
					jupyter-client==4.0.0
 | 
				
			||||||
 | 
					jupyter-console==4.0.1
 | 
				
			||||||
 | 
					jupyter-core==4.0.4
 | 
				
			||||||
 | 
					MarkupSafe==0.23
 | 
				
			||||||
 | 
					matplotlib==1.4.3
 | 
				
			||||||
 | 
					mistune==0.7.1
 | 
				
			||||||
 | 
					mock==1.3.0
 | 
				
			||||||
 | 
					nbconvert==4.0.0
 | 
				
			||||||
 | 
					nbformat==4.0.0
 | 
				
			||||||
 | 
					nose==1.3.7
 | 
				
			||||||
 | 
					notebook==4.0.4
 | 
				
			||||||
 | 
					numpy==1.9.2
 | 
				
			||||||
 | 
					path.py==8.1
 | 
				
			||||||
 | 
					pbr==1.6.0
 | 
				
			||||||
 | 
					pexpect==3.3
 | 
				
			||||||
 | 
					pickleshare==0.5
 | 
				
			||||||
 | 
					ptyprocess==0.5
 | 
				
			||||||
 | 
					PyBrain==0.3
 | 
				
			||||||
 | 
					Pygments==2.0.2
 | 
				
			||||||
 | 
					pyparsing==2.0.3
 | 
				
			||||||
 | 
					python-dateutil==2.4.2
 | 
				
			||||||
 | 
					pytz==2015.4
 | 
				
			||||||
 | 
					pyzmq==14.7.0
 | 
				
			||||||
 | 
					qtconsole==4.0.1
 | 
				
			||||||
 | 
					scikit-learn==0.16.1
 | 
				
			||||||
 | 
					scipy==0.16.0
 | 
				
			||||||
 | 
					simplegeneric==0.8.1
 | 
				
			||||||
 | 
					six==1.9.0
 | 
				
			||||||
 | 
					sklearn==0.0
 | 
				
			||||||
 | 
					terminado==0.5
 | 
				
			||||||
 | 
					tornado==4.2.1
 | 
				
			||||||
 | 
					traitlets==4.0.0
 | 
				
			||||||
 | 
					wheel==0.24.0
 | 
				
			||||||
							
								
								
									
										0
									
								
								theanoTest.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								theanoTest.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										82
									
								
								theano_tutorial/logistic_regression_loop.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										82
									
								
								theano_tutorial/logistic_regression_loop.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,82 @@
 | 
				
			|||||||
 | 
					import numpy
 | 
				
			||||||
 | 
					import theano
 | 
				
			||||||
 | 
					import theano.tensor as T
 | 
				
			||||||
 | 
					rng = numpy.random
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					N = 400                                   # training sample size
 | 
				
			||||||
 | 
					feats = 784                               # number of input variables
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# generate a dataset: D = (input_values, target_class)
 | 
				
			||||||
 | 
					D = (rng.randn(N, feats), rng.randint(size=N, low=0, high=2))
 | 
				
			||||||
 | 
					training_steps = 10000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Declare Theano symbolic variables
 | 
				
			||||||
 | 
					x = T.dmatrix("x")
 | 
				
			||||||
 | 
					y = T.dvector("y")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# initialize the weight vector w randomly
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# this and the following bias variable b
 | 
				
			||||||
 | 
					# are shared so they keep their values
 | 
				
			||||||
 | 
					# between training iterations (updates)
 | 
				
			||||||
 | 
					w = theano.shared(rng.randn(feats), name="w")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# initialize the bias term
 | 
				
			||||||
 | 
					b = theano.shared(0., name="b")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					print("Initial model:")
 | 
				
			||||||
 | 
					print(w.get_value())
 | 
				
			||||||
 | 
					print(b.get_value())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Construct Theano expression graph
 | 
				
			||||||
 | 
					p_1 = 1 / (1 + T.exp(-T.dot(x, w) - b))   # Probability that target = 1
 | 
				
			||||||
 | 
					prediction = p_1 > 0.5                    # The prediction thresholded
 | 
				
			||||||
 | 
					xent = -y * T.log(p_1) - (1-y) * T.log(1-p_1) # Cross-entropy loss function
 | 
				
			||||||
 | 
					cost = xent.mean() + 0.01 * (w ** 2).sum()# The cost to minimize
 | 
				
			||||||
 | 
					gw, gb = T.grad(cost, [w, b])             # Compute the gradient of the cost
 | 
				
			||||||
 | 
					                                          # w.r.t weight vector w and
 | 
				
			||||||
 | 
					                                          # bias term b
 | 
				
			||||||
 | 
					                                          # (we shall return to this in a
 | 
				
			||||||
 | 
					                                          # following section of this tutorial)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def set_value_at_position(x, y, prediction, xent, w, b):
 | 
				
			||||||
 | 
					    p_1 = 1 / (1 + T.exp(-T.dot(x, w) - b))  # Probability that target = 1
 | 
				
			||||||
 | 
					    prediction = p_1 > 0.5  # The prediction thresholded
 | 
				
			||||||
 | 
					    xent = -y * T.log(p_1) - (1 - y) * T.log(1 - p_1)  # Cross-entropy loss function
 | 
				
			||||||
 | 
					    cost = xent.mean() + 0.01 * (w ** 2).sum()  # The cost to minimize
 | 
				
			||||||
 | 
					    gw, gb = T.grad(cost, [w, b])
 | 
				
			||||||
 | 
					    w = w - 0.1 * gw
 | 
				
			||||||
 | 
					    b = b - 0.1 * gb
 | 
				
			||||||
 | 
					    return w, b
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					result, updates = theano.scan(fn=set_value_at_position,
 | 
				
			||||||
 | 
					                              outputs_info=[prediction, xent],
 | 
				
			||||||
 | 
					                              sequences=[x, y],
 | 
				
			||||||
 | 
					                              non_sequences=[w, b],
 | 
				
			||||||
 | 
					                              n_steps=training_steps)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					calculate_scan = theano.function(inputs=[x, y], outputs=[prediction, xent], updates=updates)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Compile
 | 
				
			||||||
 | 
					train = theano.function(
 | 
				
			||||||
 | 
					          inputs=[x,y],
 | 
				
			||||||
 | 
					          outputs=[prediction, xent],
 | 
				
			||||||
 | 
					          updates=((w, w - 0.1 * gw), (b, b - 0.1 * gb)))
 | 
				
			||||||
 | 
					predict = theano.function(inputs=[x], outputs=prediction)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Train
 | 
				
			||||||
 | 
					for i in range(training_steps):
 | 
				
			||||||
 | 
					    pred, err = train(D[0], D[1])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					print("Final model:")
 | 
				
			||||||
 | 
					print(w.get_value())
 | 
				
			||||||
 | 
					print(b.get_value())
 | 
				
			||||||
 | 
					print("target values for D:")
 | 
				
			||||||
 | 
					print(D[1])
 | 
				
			||||||
 | 
					print("prediction on D:")
 | 
				
			||||||
 | 
					print(predict(D[0]))
 | 
				
			||||||
							
								
								
									
										105
									
								
								theano_tutorial/test.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										105
									
								
								theano_tutorial/test.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,105 @@
 | 
				
			|||||||
 | 
					import numpy as np
 | 
				
			||||||
 | 
					import theano.tensor as T
 | 
				
			||||||
 | 
					from theano import function
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ALGEBRA
 | 
				
			||||||
 | 
					x = T.dmatrix('x')
 | 
				
			||||||
 | 
					y = T.dmatrix('y')
 | 
				
			||||||
 | 
					z = x + y
 | 
				
			||||||
 | 
					f = function([x, y], z)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# print(f(2, 3))
 | 
				
			||||||
 | 
					# print(numpy.allclose(f(16.3, 12.1), 28.4))
 | 
				
			||||||
 | 
					print(f([[1, 2], [3, 4]], [[10, 20], [30, 40]]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# exercise
 | 
				
			||||||
 | 
					import theano
 | 
				
			||||||
 | 
					a = T.vector()                                  # declare variable
 | 
				
			||||||
 | 
					b = T.vector()                                  # declare variable
 | 
				
			||||||
 | 
					out = a ** 2 + b ** 2 + 2 * a * b               # build symbolic expression
 | 
				
			||||||
 | 
					f = function([a, b], out)                       # compile function
 | 
				
			||||||
 | 
					print(f([1, 2], [4, 5]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					###################################################
 | 
				
			||||||
 | 
					# OTHER EXAMPLES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# logistic function
 | 
				
			||||||
 | 
					x = T.dmatrix('x')
 | 
				
			||||||
 | 
					logistic_eq = 1 / (1 + T.exp(-x))
 | 
				
			||||||
 | 
					logistic = function([x], logistic_eq)
 | 
				
			||||||
 | 
					print(logistic([[0, 1], [-1, -2]]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# multiple things calculation
 | 
				
			||||||
 | 
					a, b = T.dmatrices('a', 'b')
 | 
				
			||||||
 | 
					diff = a - b
 | 
				
			||||||
 | 
					abs_diff = abs(diff)
 | 
				
			||||||
 | 
					diff_squared = diff**2
 | 
				
			||||||
 | 
					f = function([a, b], [diff, abs_diff, diff_squared])
 | 
				
			||||||
 | 
					print(f([[1, 1], [1, 1]], [[0, 1], [2, 3]]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# default value
 | 
				
			||||||
 | 
					c = T.matrix('c')
 | 
				
			||||||
 | 
					c = a + b
 | 
				
			||||||
 | 
					f = function([a, theano.In(b, value=[[1, 1], [1, 1]])], c)
 | 
				
			||||||
 | 
					print(f([[1, 1], [1, 1]]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# accumulator
 | 
				
			||||||
 | 
					state = theano.shared([[0, 0], [0, 0]])
 | 
				
			||||||
 | 
					print("accumulator")
 | 
				
			||||||
 | 
					print(state.get_value())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					state = theano.shared(np.matrix('0 0; 0 0', dtype=np.int32))
 | 
				
			||||||
 | 
					print(type(np.matrix('0 0; 0 0', dtype=np.int64)))
 | 
				
			||||||
 | 
					print(type(np.matrix('0 1; 2 3', dtype=np.int64)))
 | 
				
			||||||
 | 
					inc = T.imatrix('inc')
 | 
				
			||||||
 | 
					expression = state+inc
 | 
				
			||||||
 | 
					print(type(expression))
 | 
				
			||||||
 | 
					accumulator = function([inc], state, updates=[(state, state+inc)])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					accumulator(np.matrix('1 2; 3 4', dtype=np.int32))
 | 
				
			||||||
 | 
					print(state.get_value())
 | 
				
			||||||
 | 
					accumulator(np.matrix('1 1; 1 1', dtype=np.int32))
 | 
				
			||||||
 | 
					print(state.get_value())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# function copy
 | 
				
			||||||
 | 
					print("function copy")
 | 
				
			||||||
 | 
					new_state = theano.shared(np.matrix('0 0; 0 0', dtype=np.int32))
 | 
				
			||||||
 | 
					new_accumulator = accumulator.copy(swap={state: new_state})
 | 
				
			||||||
 | 
					new_accumulator(np.matrix('1 2; 3 4', dtype=np.int32))
 | 
				
			||||||
 | 
					print(new_state.get_value())
 | 
				
			||||||
 | 
					print(state.get_value())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# random numbers
 | 
				
			||||||
 | 
					# POSSIBLE THAT THIS DOES NOT WORK ON GPU
 | 
				
			||||||
 | 
					print("random numbers")
 | 
				
			||||||
 | 
					srng = T.shared_randomstreams.RandomStreams(seed=234)
 | 
				
			||||||
 | 
					rv_u = srng.uniform((2, 2))
 | 
				
			||||||
 | 
					rv_n = srng.normal((2, 2))
 | 
				
			||||||
 | 
					f = function([], rv_u)
 | 
				
			||||||
 | 
					g = function([], rv_n, no_default_updates=True)     # Not updating rv_n.rng
 | 
				
			||||||
 | 
					nearly_zeros = function([], rv_u + rv_u - 2 * rv_u)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					print(f())
 | 
				
			||||||
 | 
					print(f())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					print(g())
 | 
				
			||||||
 | 
					print(g())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					print("sharing streams between functions")
 | 
				
			||||||
 | 
					state_after_v0 = rv_u.rng.get_value().get_state()
 | 
				
			||||||
 | 
					# nearly_zeros()       # this affects rv_u's generator
 | 
				
			||||||
 | 
					v1 = f()
 | 
				
			||||||
 | 
					rng = rv_u.rng.get_value(borrow=True)
 | 
				
			||||||
 | 
					rng.set_state(state_after_v0)
 | 
				
			||||||
 | 
					rv_u.rng.set_value(rng, borrow=True)
 | 
				
			||||||
 | 
					v2 = f()             # v2 != v1
 | 
				
			||||||
 | 
					v3 = f()             # v3 == v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					print(v1)
 | 
				
			||||||
 | 
					print(v2)
 | 
				
			||||||
 | 
					print(v3)
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user