Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
fc8a8bea
Commit
fc8a8bea
authored
Sep 15, 2018
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cont ...
parent
2e2868bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Example 14 - Deep Learning Model Prediction - Tensorflow Application.ipynb
... Learning Model Prediction - Tensorflow Application.ipynb
+4
-6
No files found.
notebooks/Example 14 - Deep Learning Model Prediction - Tensorflow Application.ipynb
View file @
fc8a8bea
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
"source": [
"source": [
"class LinearRegressionImpl(object):\n",
"class LinearRegressionImpl(object):\n",
" def __init__(self, **kwargs):\n",
" def __init__(self, **kwargs):\n",
" self.learning_rate = kwargs.get('learning_rate', 0.
0
1)\n",
" self.learning_rate = kwargs.get('learning_rate', 0.1)\n",
" self.training_epochs = kwargs.get('training_epochs', 10)\n",
" self.training_epochs = kwargs.get('training_epochs', 10
0
)\n",
" self.display_steps = kwargs.get('display_steps', None)\n",
" self.display_steps = kwargs.get('display_steps', None)\n",
" self.W = None\n",
" self.W = None\n",
" self.b = None\n",
" self.b = None\n",
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
"outputs": [],
"outputs": [],
"source": [
"source": [
"\n",
"\n",
"kernal_feature = '
roe_q
'\n",
"kernal_feature = '
ROE
'\n",
"regress_features = {kernal_feature: LAST(kernal_feature),\n",
"regress_features = {kernal_feature: LAST(kernal_feature),\n",
" kernal_feature + '_l1': SHIFT(kernal_feature, 1),\n",
" kernal_feature + '_l1': SHIFT(kernal_feature, 1),\n",
" kernal_feature + '_l2': SHIFT(kernal_feature, 2),\n",
" kernal_feature + '_l2': SHIFT(kernal_feature, 2),\n",
...
@@ -317,8 +317,6 @@
...
@@ -317,8 +317,6 @@
"rets1 = []\n",
"rets1 = []\n",
"rets2 = []\n",
"rets2 = []\n",
"\n",
"\n",
"\n",
"\n",
"for i, ref_date in enumerate(model_dates):\n",
"for i, ref_date in enumerate(model_dates):\n",
" py_ref_date = dt.datetime.strptime(ref_date, '%Y-%m-%d')\n",
" py_ref_date = dt.datetime.strptime(ref_date, '%Y-%m-%d')\n",
" industry_matrix = industry_total[industry_total.trade_date == ref_date]\n",
" industry_matrix = industry_total[industry_total.trade_date == ref_date]\n",
...
@@ -416,7 +414,7 @@
...
@@ -416,7 +414,7 @@
"name": "python",
"name": "python",
"nbconvert_exporter": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"pygments_lexer": "ipython3",
"version": "3.6.
6
"
"version": "3.6.
5
"
},
},
"varInspector": {
"varInspector": {
"cols": {
"cols": {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment