ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Shizuoka.py #5 Tetsuya Tatsumi dokechin
BOT
BOT
CSV
? Quandl)
BOT
CSV
? FRB 2000
BOT
?
NASDAQ SP500 DAX
2002-09-10 9309 120.68 1320.2 909.58 3494
2002-09-11 9400 121.50 1315.0 909.45 3584
2002-09-12 9415 122.17 1280.0 886.90 3421
BOT
CSV
? pandas
? sort
# read cvs file and sort by specific column
ni225 = pandas.read_csv("YAHOO-INDEX_N225.csv",parse_dates=True)
ni225 = ni225.dropna()
ni225 = ni225.sort_values(by="Date", ascending=True).reset_index(drop=True)
BOT
? ?
? n
# normalizations of features
features = numpy.array(features)
features = (features - features.min(0)) / features.ptp(0)
BOT
? SVM
?
?
clf = svm.SVC()
tuned_parameters = {'kernel': ['rbf'], 'gamma': [0.2,0.1,0.08,0.07,0.06,0.04,0.03,0.02],
'C': [10,20,30,40,50]}
grid = grid_search.GridSearchCV(estimator=clf, param_grid=tuned_parameters)
grid.fit(features, labels)
print (grid.grid_scores_)
BOT
BOT
? con?gparser
? Tweet python-twitter
predict = clf.predict(feature)
inifile = configparser.ConfigParser()
inifile.read("./config.ini")
api = twitter.Api(
consumer_key = inifile.get("twitter","consumer_key"),
consumer_secret = inifile.get("twitter","consumer_secret"),
access_token_key = inifile.get("twitter","access_token_key"),
access_token_secret = inifile.get("twitter","access_token_secret")
)
content = "# # http://niyo.dokechin.com "
if predict == 1:
content +=" "
else:
content +=" "
api.PostUpdate(content)
BOT
BOT
?
?
?

More Related Content

What's hot (19)

The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180
Mahmoud Samir Fayed
?
Accelerating Local Search with PostgreSQL (KNN-Search)
Accelerating Local Search with PostgreSQL (KNN-Search)Accelerating Local Search with PostgreSQL (KNN-Search)
Accelerating Local Search with PostgreSQL (KNN-Search)
Jonathan Katz
?
Typelevel summit
Typelevel summitTypelevel summit
Typelevel summit
Marina Sigaeva
?
Herding types with Scala macros
Herding types with Scala macrosHerding types with Scala macros
Herding types with Scala macros
Marina Sigaeva
?
The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189
Mahmoud Samir Fayed
?
Azure sql insert perf
Azure sql insert perfAzure sql insert perf
Azure sql insert perf
Morn¨¨ Blake
?
FunctionalJS - George Shevtsov
FunctionalJS - George ShevtsovFunctionalJS - George Shevtsov
FunctionalJS - George Shevtsov
Georgiy Shevtsov
?
"Metrics: Where and How", Vsevolod Polyakov
"Metrics: Where and How", Vsevolod Polyakov"Metrics: Where and How", Vsevolod Polyakov
"Metrics: Where and How", Vsevolod Polyakov
Yulia Shcherbachova
?
ECMAScript 5: §¯§à§Ó§à§Ö §Ó JavaScript
ECMAScript 5: §¯§à§Ó§à§Ö §Ó JavaScriptECMAScript 5: §¯§à§Ó§à§Ö §Ó JavaScript
ECMAScript 5: §¯§à§Ó§à§Ö §Ó JavaScript
§¥§Ö§á§Ñ§â§ä§Ñ§Þ§Ö§ß§ä §³§ä§â§Ñ§ä§Ö§Ô§Ú§é§Ö§ã§Ü§Ú§ç §´§Ö§ç§ß§à§Ý§à§Ô§Ú§Û
?
ts
tsts
ts
CHEN Qingjun
?
Webinar: Secrets of ClickHouse Query Performance, by Robert Hodges
Webinar: Secrets of ClickHouse Query Performance, by Robert HodgesWebinar: Secrets of ClickHouse Query Performance, by Robert Hodges
Webinar: Secrets of ClickHouse Query Performance, by Robert Hodges
Altinity Ltd
?
Daniel Sikar: Hadoop MapReduce - 06/09/2010
Daniel Sikar: Hadoop MapReduce - 06/09/2010 Daniel Sikar: Hadoop MapReduce - 06/09/2010
Daniel Sikar: Hadoop MapReduce - 06/09/2010
Skills Matter
?
Parallel Computing with R
Parallel Computing with RParallel Computing with R
Parallel Computing with R
Peter Solymos
?
Brief intro to clojure
Brief intro to clojureBrief intro to clojure
Brief intro to clojure
Roy Rutto
?
ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...
ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...
ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...
Altinity Ltd
?
Zone.js 2017
Zone.js 2017Zone.js 2017
Zone.js 2017
Jia Li
?
R meets Hadoop
R meets HadoopR meets Hadoop
R meets Hadoop
Hidekazu Tanaka
?
John Melesky - Federating Queries Using Postgres FDW @ Postgres Open
John Melesky - Federating Queries Using Postgres FDW @ Postgres OpenJohn Melesky - Federating Queries Using Postgres FDW @ Postgres Open
John Melesky - Federating Queries Using Postgres FDW @ Postgres Open
PostgresOpen
?
Academy PRO: Elasticsearch Misc
Academy PRO: Elasticsearch MiscAcademy PRO: Elasticsearch Misc
Academy PRO: Elasticsearch Misc
Binary Studio
?
The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180
Mahmoud Samir Fayed
?
Accelerating Local Search with PostgreSQL (KNN-Search)
Accelerating Local Search with PostgreSQL (KNN-Search)Accelerating Local Search with PostgreSQL (KNN-Search)
Accelerating Local Search with PostgreSQL (KNN-Search)
Jonathan Katz
?
Herding types with Scala macros
Herding types with Scala macrosHerding types with Scala macros
Herding types with Scala macros
Marina Sigaeva
?
The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189
Mahmoud Samir Fayed
?
FunctionalJS - George Shevtsov
FunctionalJS - George ShevtsovFunctionalJS - George Shevtsov
FunctionalJS - George Shevtsov
Georgiy Shevtsov
?
"Metrics: Where and How", Vsevolod Polyakov
"Metrics: Where and How", Vsevolod Polyakov"Metrics: Where and How", Vsevolod Polyakov
"Metrics: Where and How", Vsevolod Polyakov
Yulia Shcherbachova
?
Webinar: Secrets of ClickHouse Query Performance, by Robert Hodges
Webinar: Secrets of ClickHouse Query Performance, by Robert HodgesWebinar: Secrets of ClickHouse Query Performance, by Robert Hodges
Webinar: Secrets of ClickHouse Query Performance, by Robert Hodges
Altinity Ltd
?
Daniel Sikar: Hadoop MapReduce - 06/09/2010
Daniel Sikar: Hadoop MapReduce - 06/09/2010 Daniel Sikar: Hadoop MapReduce - 06/09/2010
Daniel Sikar: Hadoop MapReduce - 06/09/2010
Skills Matter
?
Parallel Computing with R
Parallel Computing with RParallel Computing with R
Parallel Computing with R
Peter Solymos
?
Brief intro to clojure
Brief intro to clojureBrief intro to clojure
Brief intro to clojure
Roy Rutto
?
ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...
ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...
ClickHouse Unleashed 2020: Our Favorite New Features for Your Analytical Appl...
Altinity Ltd
?
Zone.js 2017
Zone.js 2017Zone.js 2017
Zone.js 2017
Jia Li
?
John Melesky - Federating Queries Using Postgres FDW @ Postgres Open
John Melesky - Federating Queries Using Postgres FDW @ Postgres OpenJohn Melesky - Federating Queries Using Postgres FDW @ Postgres Open
John Melesky - Federating Queries Using Postgres FDW @ Postgres Open
PostgresOpen
?
Academy PRO: Elasticsearch Misc
Academy PRO: Elasticsearch MiscAcademy PRO: Elasticsearch Misc
Academy PRO: Elasticsearch Misc
Binary Studio
?

Similar to ÈÕ½Uƽ¾ùÉÏÏÂÓèÏëµþ´Ç³Ù¤ò×÷¤Ã¤¿»° (20)

Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Cuneyt Goksu
?
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden
?
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden
?
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden
?
User Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love StoryUser Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love Story
Databricks
?
User Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love StoryUser Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love Story
Databricks
?
More than `po`: Debugging in lldb
More than `po`: Debugging in lldbMore than `po`: Debugging in lldb
More than `po`: Debugging in lldb
Michele Titolo
?
Scala meetup - Intro to spark
Scala meetup - Intro to sparkScala meetup - Intro to spark
Scala meetup - Intro to spark
Javier Arrieta
?
Patterns for slick database applications
Patterns for slick database applicationsPatterns for slick database applications
Patterns for slick database applications
Skills Matter
?
The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180
Mahmoud Samir Fayed
?
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, HerokuPostgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Redis Labs
?
R for you
R for youR for you
R for you
Andreas Chandra
?
Explain this!
Explain this!Explain this!
Explain this!
Fabio Telles Rodriguez
?
OLTP+OLAP=HTAP
 OLTP+OLAP=HTAP OLTP+OLAP=HTAP
OLTP+OLAP=HTAP
EDB
?
The Ring programming language version 1.7 book - Part 31 of 196
The Ring programming language version 1.7 book - Part 31 of 196The Ring programming language version 1.7 book - Part 31 of 196
The Ring programming language version 1.7 book - Part 31 of 196
Mahmoud Samir Fayed
?
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Report
nyin27
?
The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212
Mahmoud Samir Fayed
?
Introduction to R
Introduction to RIntroduction to R
Introduction to R
Stacy Irwin
?
How to teach an elephant to rock'n'roll
How to teach an elephant to rock'n'rollHow to teach an elephant to rock'n'roll
How to teach an elephant to rock'n'roll
PGConf APAC
?
GCC
GCCGCC
GCC
Kir Chou
?
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Cuneyt Goksu
?
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden
?
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden
?
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden
?
User Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love StoryUser Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love Story
Databricks
?
User Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love StoryUser Defined Aggregation in Apache Spark: A Love Story
User Defined Aggregation in Apache Spark: A Love Story
Databricks
?
More than `po`: Debugging in lldb
More than `po`: Debugging in lldbMore than `po`: Debugging in lldb
More than `po`: Debugging in lldb
Michele Titolo
?
Scala meetup - Intro to spark
Scala meetup - Intro to sparkScala meetup - Intro to spark
Scala meetup - Intro to spark
Javier Arrieta
?
Patterns for slick database applications
Patterns for slick database applicationsPatterns for slick database applications
Patterns for slick database applications
Skills Matter
?
The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180
Mahmoud Samir Fayed
?
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, HerokuPostgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Redis Labs
?
OLTP+OLAP=HTAP
 OLTP+OLAP=HTAP OLTP+OLAP=HTAP
OLTP+OLAP=HTAP
EDB
?
The Ring programming language version 1.7 book - Part 31 of 196
The Ring programming language version 1.7 book - Part 31 of 196The Ring programming language version 1.7 book - Part 31 of 196
The Ring programming language version 1.7 book - Part 31 of 196
Mahmoud Samir Fayed
?
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Report
nyin27
?
The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212
Mahmoud Samir Fayed
?
How to teach an elephant to rock'n'roll
How to teach an elephant to rock'n'rollHow to teach an elephant to rock'n'roll
How to teach an elephant to rock'n'roll
PGConf APAC
?

More from dokechin (9)

¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó
¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó
¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó
dokechin
?
²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë
²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë
²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë
dokechin
?
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
dokechin
?
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
dokechin
?
¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k
¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k
¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k
dokechin
?
±Ê±ð°ù±ô¤Ç²ú»å»å
±Ê±ð°ù±ô¤Ç²ú»å»å±Ê±ð°ù±ô¤Ç²ú»å»å
±Ê±ð°ù±ô¤Ç²ú»å»å
dokechin
?
¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°
¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°
¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°
dokechin
?
Mojolicous and Bootstrap
Mojolicous and BootstrapMojolicous and Bootstrap
Mojolicous and Bootstrap
dokechin
?
Learn fromalphageeks
Learn fromalphageeksLearn fromalphageeks
Learn fromalphageeks
dokechin
?
¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó
¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó
¥¿?¥ó¥È?¥ê©`¥­¥Ã¥Á¥ó
dokechin
?
²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë
²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë
²Ñ³æ²Ô±ð³Ù¤Ë¤è¤ë¥Æ?©`¥Õ?¥é©`¥Ë¥ó¥¯?¤Æ?¥»¥ß¤Î’i¤±š£¤òʶ±ð¤¹¤ë
dokechin
?
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
dokechin
?
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
dokechin
?
¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k
¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k
¥ª©`¥Õ?¥ó¥Æ?©`¥¿¤òÀûÓä·¤¿°Â±ð²ú¥¢¥Õ?¥ê¿ª°k
dokechin
?
±Ê±ð°ù±ô¤Ç²ú»å»å
±Ê±ð°ù±ô¤Ç²ú»å»å±Ê±ð°ù±ô¤Ç²ú»å»å
±Ê±ð°ù±ô¤Ç²ú»å»å
dokechin
?
¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°
¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°
¥¯¥é¥¦¥É¥¹¥È¥ì©`¥¸¤òʹ¤Ã¤ÆÒôÉùͶ¸å¥µ¥¤¥È¤ò×÷¤Ã¤¿»°
dokechin
?
Mojolicous and Bootstrap
Mojolicous and BootstrapMojolicous and Bootstrap
Mojolicous and Bootstrap
dokechin
?
Learn fromalphageeks
Learn fromalphageeksLearn fromalphageeks
Learn fromalphageeks
dokechin
?

Recently uploaded (20)

IoT-based-Electrical-Motor-Fault-Detection-System.pptx
IoT-based-Electrical-Motor-Fault-Detection-System.pptxIoT-based-Electrical-Motor-Fault-Detection-System.pptx
IoT-based-Electrical-Motor-Fault-Detection-System.pptx
atharvapardeshi03
?
ESIT135 Problem Solving Using Python Notes of Unit-3
ESIT135 Problem Solving Using Python Notes of Unit-3ESIT135 Problem Solving Using Python Notes of Unit-3
ESIT135 Problem Solving Using Python Notes of Unit-3
prasadmutkule1
?
Helium Boosting & Decanting With Hydro Test Machine
Helium Boosting & Decanting With Hydro Test MachineHelium Boosting & Decanting With Hydro Test Machine
Helium Boosting & Decanting With Hydro Test Machine
Paskals Fluid Systems Pvt. Ltd.
?
Design of cannal by Kennedy Theory full problem solved
Design of cannal by Kennedy Theory full problem solvedDesign of cannal by Kennedy Theory full problem solved
Design of cannal by Kennedy Theory full problem solved
Er. Gurmeet Singh
?
Von karman Equation full derivation .pdf
Von karman Equation full derivation  .pdfVon karman Equation full derivation  .pdf
Von karman Equation full derivation .pdf
Er. Gurmeet Singh
?
???? ???????? ????????? ??????? ?????????
???? ???????? ????????? ??????? ????????????? ???????? ????????? ??????? ?????????
???? ???????? ????????? ??????? ?????????
o774656624
?
Improving Surgical Robot Performance Through Seal Design.pdf
Improving Surgical Robot Performance Through Seal Design.pdfImproving Surgical Robot Performance Through Seal Design.pdf
Improving Surgical Robot Performance Through Seal Design.pdf
BSEmarketing
?
Turbocor Product and Technology Review.pdf
Turbocor Product and Technology Review.pdfTurbocor Product and Technology Review.pdf
Turbocor Product and Technology Review.pdf
Totok Sulistiyanto
?
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
?
Wireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdfWireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdf
AbhinandanMishra30
?
Sppu engineering artificial intelligence and data science semester 6th Artif...
Sppu engineering  artificial intelligence and data science semester 6th Artif...Sppu engineering  artificial intelligence and data science semester 6th Artif...
Sppu engineering artificial intelligence and data science semester 6th Artif...
pawaletrupti434
?
Introduction to Safety, Health & Environment
Introduction to Safety, Health  & EnvironmentIntroduction to Safety, Health  & Environment
Introduction to Safety, Health & Environment
ssuserc606c7
?
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
?
Sorting Algorithms: Bubble Sort, Selection Sort,
Sorting Algorithms: Bubble Sort, Selection Sort,Sorting Algorithms: Bubble Sort, Selection Sort,
Sorting Algorithms: Bubble Sort, Selection Sort,
Dr. Madhuri Jawale
?
health safety and environment presentation
health safety and environment presentationhealth safety and environment presentation
health safety and environment presentation
ssuserc606c7
?
Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...
dhanashree78
?
ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2
ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2
ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2
prasadmutkule1
?
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptxMathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
ppkmurthy2006
?
Data recovery and Digital evidence controls in digital frensics.pdf
Data recovery and Digital evidence controls in digital frensics.pdfData recovery and Digital evidence controls in digital frensics.pdf
Data recovery and Digital evidence controls in digital frensics.pdf
Abhijit Bodhe
?
eng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfdddddddddddddddddddddddeng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfddddddddddddddddddddddd
aayushkumarsinghec22
?
IoT-based-Electrical-Motor-Fault-Detection-System.pptx
IoT-based-Electrical-Motor-Fault-Detection-System.pptxIoT-based-Electrical-Motor-Fault-Detection-System.pptx
IoT-based-Electrical-Motor-Fault-Detection-System.pptx
atharvapardeshi03
?
ESIT135 Problem Solving Using Python Notes of Unit-3
ESIT135 Problem Solving Using Python Notes of Unit-3ESIT135 Problem Solving Using Python Notes of Unit-3
ESIT135 Problem Solving Using Python Notes of Unit-3
prasadmutkule1
?
Design of cannal by Kennedy Theory full problem solved
Design of cannal by Kennedy Theory full problem solvedDesign of cannal by Kennedy Theory full problem solved
Design of cannal by Kennedy Theory full problem solved
Er. Gurmeet Singh
?
Von karman Equation full derivation .pdf
Von karman Equation full derivation  .pdfVon karman Equation full derivation  .pdf
Von karman Equation full derivation .pdf
Er. Gurmeet Singh
?
???? ???????? ????????? ??????? ?????????
???? ???????? ????????? ??????? ????????????? ???????? ????????? ??????? ?????????
???? ???????? ????????? ??????? ?????????
o774656624
?
Improving Surgical Robot Performance Through Seal Design.pdf
Improving Surgical Robot Performance Through Seal Design.pdfImproving Surgical Robot Performance Through Seal Design.pdf
Improving Surgical Robot Performance Through Seal Design.pdf
BSEmarketing
?
Turbocor Product and Technology Review.pdf
Turbocor Product and Technology Review.pdfTurbocor Product and Technology Review.pdf
Turbocor Product and Technology Review.pdf
Totok Sulistiyanto
?
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
?
Wireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdfWireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdf
AbhinandanMishra30
?
Sppu engineering artificial intelligence and data science semester 6th Artif...
Sppu engineering  artificial intelligence and data science semester 6th Artif...Sppu engineering  artificial intelligence and data science semester 6th Artif...
Sppu engineering artificial intelligence and data science semester 6th Artif...
pawaletrupti434
?
Introduction to Safety, Health & Environment
Introduction to Safety, Health  & EnvironmentIntroduction to Safety, Health  & Environment
Introduction to Safety, Health & Environment
ssuserc606c7
?
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
?
Sorting Algorithms: Bubble Sort, Selection Sort,
Sorting Algorithms: Bubble Sort, Selection Sort,Sorting Algorithms: Bubble Sort, Selection Sort,
Sorting Algorithms: Bubble Sort, Selection Sort,
Dr. Madhuri Jawale
?
health safety and environment presentation
health safety and environment presentationhealth safety and environment presentation
health safety and environment presentation
ssuserc606c7
?
Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...
dhanashree78
?
ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2
ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2
ESIT135 Problem Solving Using Python Notes of Unit-1 and Unit-2
prasadmutkule1
?
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptxMathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
ppkmurthy2006
?
Data recovery and Digital evidence controls in digital frensics.pdf
Data recovery and Digital evidence controls in digital frensics.pdfData recovery and Digital evidence controls in digital frensics.pdf
Data recovery and Digital evidence controls in digital frensics.pdf
Abhijit Bodhe
?
eng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfdddddddddddddddddddddddeng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfddddddddddddddddddddddd
aayushkumarsinghec22
?

ÈÕ½Uƽ¾ùÉÏÏÂÓèÏëµþ´Ç³Ù¤ò×÷¤Ã¤¿»°

  • 1. Shizuoka.py #5 Tetsuya Tatsumi dokechin BOT
  • 4. BOT ? NASDAQ SP500 DAX 2002-09-10 9309 120.68 1320.2 909.58 3494 2002-09-11 9400 121.50 1315.0 909.45 3584 2002-09-12 9415 122.17 1280.0 886.90 3421
  • 5. BOT CSV ? pandas ? sort # read cvs file and sort by specific column ni225 = pandas.read_csv("YAHOO-INDEX_N225.csv",parse_dates=True) ni225 = ni225.dropna() ni225 = ni225.sort_values(by="Date", ascending=True).reset_index(drop=True)
  • 6. BOT ? ? ? n # normalizations of features features = numpy.array(features) features = (features - features.min(0)) / features.ptp(0)
  • 7. BOT ? SVM ? ? clf = svm.SVC() tuned_parameters = {'kernel': ['rbf'], 'gamma': [0.2,0.1,0.08,0.07,0.06,0.04,0.03,0.02], 'C': [10,20,30,40,50]} grid = grid_search.GridSearchCV(estimator=clf, param_grid=tuned_parameters) grid.fit(features, labels) print (grid.grid_scores_)
  • 8. BOT BOT ? con?gparser ? Tweet python-twitter predict = clf.predict(feature) inifile = configparser.ConfigParser() inifile.read("./config.ini") api = twitter.Api( consumer_key = inifile.get("twitter","consumer_key"), consumer_secret = inifile.get("twitter","consumer_secret"), access_token_key = inifile.get("twitter","access_token_key"), access_token_secret = inifile.get("twitter","access_token_secret") ) content = "# # http://niyo.dokechin.com " if predict == 1: content +=" " else: content +=" " api.PostUpdate(content)
  • 9. BOT