stefan-jansen / machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.
https://ml4trading.io
12.87k stars 4.11k forks source link

Machine Learning for Algorithmic Trading, 2nd Edition #226

Closed chansingcho closed 2 years ago

chansingcho commented 2 years ago

Dear Stefan, Chapter 16 on Word Embeddings (e.g., 01_using_pretrained_vectors.ipynb) requires the file "analogies-en.txt". I could not find the file and do not know how it is created. Please help. Thank you very much. Sing Cho

stefan-jansen commented 2 years ago

You can find the original file here: https://github.com/nicholas-leonard/word2vec/blob/master/questions-words.txt I'm not sure if I changed the format before using it, will check. Sorry, should have been in the data folder.

chansingcho commented 2 years ago

Thanks Stefan. I will try it out.


From: Stefan Jansen @.> Sent: Monday, February 21, 2022 7:56 AM To: stefan-jansen/machine-learning-for-trading @.> Cc: chansingcho @.>; Author @.> Subject: Re: [stefan-jansen/machine-learning-for-trading] Machine Learning for Algorithmic Trading, 2nd Edition (Issue #226)

You can find the original file here: https://github.com/nicholas-leonard/word2vec/blob/master/questions-words.txthttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnicholas-leonard%2Fword2vec%2Fblob%2Fmaster%2Fquestions-words.txt&data=04%7C01%7C%7C4984ab22fde24bfa55b408d9f4ccaf0c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637809982218763061%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=joWMStd5vmWidtgx7G362OwhRM9HaAM156LZY8qPExQ%3D&reserved=0 I'm not sure if I changed the format before using it, will check. Sorry, should have been in the data folder.

— Reply to this email directly, view it on GitHubhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-jansen%2Fmachine-learning-for-trading%2Fissues%2F226%23issuecomment-1046350481&data=04%7C01%7C%7C4984ab22fde24bfa55b408d9f4ccaf0c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637809982218763061%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=vF9WYifLdOOxD1miZ9syW4PXpgXFFSGOTL7UC5im84k%3D&reserved=0, or unsubscribehttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPNNDBKSA6EDEITA2DR2ZLDU4F5UXANCNFSM5OWZMDSQ&data=04%7C01%7C%7C4984ab22fde24bfa55b408d9f4ccaf0c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637809982218763061%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=k1CuKDxcFBO7BnVy7LOKNCyRKpOj7%2F%2FJ3My2v7UwxvA%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C4984ab22fde24bfa55b408d9f4ccaf0c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637809982218763061%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=sBus3xFQM1nRdanvyaDPwg85dOJZdCyJCaZ%2BMXe2MA0%3D&reserved=0 or Androidhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C4984ab22fde24bfa55b408d9f4ccaf0c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637809982218763061%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BbyqRhObzaj%2Bp%2BGP1OVZ%2FcZUNRFjtC0rplWVOoXGIEc%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

stefan-jansen commented 2 years ago

I've found the file but can't access it because I'm traveling. I'll add it early next month.

stefan-jansen commented 2 years ago

I've added the missing file here: https://github.com/stefan-jansen/machine-learning-for-trading/tree/main/16_word_embeddings/data

chansingcho commented 2 years ago

Good. Thanks again, Stefan.


From: Stefan Jansen @.> Sent: Wednesday, April 20, 2022 8:41 PM To: stefan-jansen/machine-learning-for-trading @.> Cc: chansingcho @.>; Author @.> Subject: Re: [stefan-jansen/machine-learning-for-trading] Machine Learning for Algorithmic Trading, 2nd Edition (Issue #226)

I've added the missing file here: https://github.com/stefan-jansen/machine-learning-for-trading/tree/main/16_word_embeddings/datahttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-jansen%2Fmachine-learning-for-trading%2Ftree%2Fmain%2F16_word_embeddings%2Fdata&data=05%7C01%7C%7C6ecde97c48e349a8c77108da22cb2621%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637860553162024933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zS9fYSfhoHFoKO%2FASOFCsj4PnrdUjq9e%2FEAuG1aUpVM%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-jansen%2Fmachine-learning-for-trading%2Fissues%2F226%23issuecomment-1103886658&data=05%7C01%7C%7C6ecde97c48e349a8c77108da22cb2621%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637860553162024933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8l%2Fz7Yavwkn%2F2SpzYQndslp1RVNqnRfjFbevS6gj8Ik%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPNNDBMZMQWOLJKY6ZVCFI3VF73RDANCNFSM5OWZMDSQ&data=05%7C01%7C%7C6ecde97c48e349a8c77108da22cb2621%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637860553162024933%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RenKPj1TZFqZxyIs3iSkL2%2Bs0KdecmMqrPyrV9E3vqA%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

chansingcho commented 1 year ago

Thanks Stefan. I got the file following your previous email and it worked.

Regards, SC


From: Stefan Jansen @.> Sent: Wednesday, March 9, 2022 3:50 AM To: stefan-jansen/machine-learning-for-trading @.> Cc: chansingcho @.>; Author @.> Subject: Re: [stefan-jansen/machine-learning-for-trading] Machine Learning for Algorithmic Trading, 2nd Edition (Issue #226)

I've found the file but can't access it because I'm traveling. I'll add it early next month.

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-jansen%2Fmachine-learning-for-trading%2Fissues%2F226%23issuecomment-1062143177&data=04%7C01%7C%7C99e4bebcc4674cadaf7c08da013cdf67%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637823658210916293%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=iqWkhkcAghoUQMGUNW4Tvw021mH61cHDfiGX95k79y0%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPNNDBPETBXIQMJDM3PXHMLU66VPTANCNFSM5OWZMDSQ&data=04%7C01%7C%7C99e4bebcc4674cadaf7c08da013cdf67%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637823658210958876%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Z7lUZvTVqgZUMplBJ7LCg5J4tFoLw0y5isNadFqZIjo%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C99e4bebcc4674cadaf7c08da013cdf67%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637823658210969501%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=HOQh0CY1kPeEoxa6mJUEQ60cE%2BvzX3NNLfHHnIbVHdg%3D&reserved=0 or Androidhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C99e4bebcc4674cadaf7c08da013cdf67%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637823658210969501%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=PQdf%2BvdE%2FgTXnSRA2PliXvRe90%2F2sdGdThVaS20PSZU%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>