name:Weiqing Ni netID: wn61
More details on Github.
- Windows
- Linux
- MacOS (Require Xcode, to be verified)
-
Windows:
- Open Visual Studio/ CodeBlocks, create new console application project.
- Import all files into project
- Build
-
Linux/ Cygwin on Windows:
-
Build static library (generate BayesCurFit.a):
cd Linux/BayesCurFit make
-
Build executable file:
gcc main.c BayesCurFit.a -lm -fopenmp -o Bayes
-
-
MacOS:
- TBD
./Bayes {x_input_file} {t_input_file} {size} {x_to_predict}
example:
GetStock/CreateDatabase.php && GetStock/ImportData.php
Modify username and password according to your configuration for mySQL:
$username = "root";
$password = "";
cd GetStock
# Get history information
php getHistory.php
# Get real time information
php getReal.php
# Create database
php CreateDatabase.php
# Import data to database
php ImportData.php
# Output database tables
php showDatabase.php
# Clear tables
php clearTable.php
Code | Company |
---|---|
GOOG | |
YHOO | Yahoo |
MSFT | Microsoft |
FB | |
CCF | Chase |
Find history data in ./GetStock/hist_data/{Code}-{Time}.csv
.
Find real-time data in ./GetStock/real_data/{Code}-{Time}.csv
.
-
Timestamp is different due to different API.
-
Warning fixes
Compile and run:
cd {DIR}
make
GCC main.c BP.a -lm -fopenmp -o BP
./BP {learning_rate} {max_training_times} {target_error}
Compile and Run:
cd {DIR}
g++ server.cpp -o server
g++ client.cpp -o client
./server [port_num]
./client [port_num]
Commands supported by the server:
-
Get files
GET [filename]
-
Bounce text
BOUNCE [text]
-
Exit
EXIT
or
EXIT [exit_code]