1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-13 00:16:44 +00:00
This commit is contained in:
2020-05-02 10:56:50 +08:00
parent 1cbe0bf37b
commit 6f26c20c43
2 changed files with 11 additions and 12 deletions

19
.idea/workspace.xml generated
View File

@@ -2,7 +2,6 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="0aedafd8-e57e-462a-beda-65af0b91f3df" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/train.py" beforeDir="false" afterPath="$PROJECT_DIR$/train.py" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
@@ -48,7 +47,7 @@
<counts>
<entry key="Dockerfile" value="81" />
<entry key="md" value="104" />
<entry key="py" value="2696" />
<entry key="py" value="2722" />
<entry key="sh" value="5" />
</counts>
</usages-collector>
@@ -57,7 +56,7 @@
<entry key="Bash" value="5" />
<entry key="Dockerfile" value="81" />
<entry key="Markdown" value="104" />
<entry key="Python" value="2696" />
<entry key="Python" value="2722" />
</counts>
</usages-collector>
</session>
@@ -92,8 +91,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/train.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="130">
<caret line="96" column="21" selection-start-line="96" selection-start-column="21" selection-end-line="96" selection-end-column="21" />
<state relative-caret-position="232">
<caret line="112" column="50" selection-start-line="112" selection-start-column="50" selection-end-line="112" selection-end-column="50" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
@@ -226,7 +225,7 @@
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1588388059599" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1588388161041" />
<property name="go.gopath.indexing.explicitly.defined" value="true" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -267,12 +266,12 @@
<option name="presentableId" value="Default" />
<updated>1588152877746</updated>
<workItem from="1588152880522" duration="16973000" />
<workItem from="1588319878551" duration="22412000" />
<workItem from="1588319878551" duration="22667000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="39385000" />
<option name="totallyTimeSpent" value="39640000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="0" width="1280" height="800" extended-state="0" />
@@ -397,8 +396,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/train.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="130">
<caret line="96" column="21" selection-start-line="96" selection-start-column="21" selection-end-line="96" selection-end-column="21" />
<state relative-caret-position="232">
<caret line="112" column="50" selection-start-line="112" selection-start-column="50" selection-end-line="112" selection-end-column="50" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>

View File

@@ -108,9 +108,9 @@ def experiment(repeats, series, seed):
# forecast the entire training dataset to build up state for forecasting
print(train_trimmed)
print(train_trimmed[:, 0])
print(train_trimmed[:, :-2])
print(train_trimmed[:, :-1])
if seed:
train_reshaped = train_trimmed[:, :-2].reshape(len(train_trimmed), 1, lag2)
train_reshaped = train_trimmed[:, :-1].reshape(len(train_trimmed), 1, lag2)
lstm_model.predict(train_reshaped, batch_size=batch_size)
# forecast test dataset
test_reshaped = test_scaled[:, 0:-1]