forecasting:data_preprocessing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
forecasting:data_preprocessing [2020/11/30 22:53]
kmacloves [Table]
forecasting:data_preprocessing [2021/09/19 21:59] (current)
Line 65: Line 65:
 When we are calling one country we will be setting the corresponding space equal to 1 and all other spaces equal to 0: When we are calling one country we will be setting the corresponding space equal to 1 and all other spaces equal to 0:
  
-|   ​France:​ [1 0 0] | +|   ​France: ​[1 0 0]  
-|    Spain: [0 1 0] | +|    Spain: ​[0 1 0]  
-|  Germany: [0 0 1] |+|  Germany: ​[0 0 1]  |
  
 To use the OneHotEncoding function in python we can use it from the scikitlearn library: To use the OneHotEncoding function in python we can use it from the scikitlearn library:
  • forecasting/data_preprocessing.1606776821.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)