Skip to content

wanxinwanxin/COS424-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COS424-

Fundamentals of Machine learning course

All four pieces of code can be run sequentially.

PARSING TEXT INTO BAG OF WORDS

  1. first run csv to txt file, remember to change file name and column number. This code will convert a given column of a CSV file into the format we used in assignment one. We will then recycle the code from assignment one to convert it into BOW and do stemming, etc.
  2. then run bagofwordsprocessing.py. Remember to change the parameters highlighted in the file, including file locations, word limit, etc. This generates a BOW file.

FinalCode

The code does the grid search of optimal parameters, fits the model, and then predict on the test set.

Trading Simulation

need to install ARCH package by running pip install arch in the terminal before running this code takes the prediction from finalcode and runs trading simulation based on three different strategies.

About

Fundamentals of Machine learning course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published