Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. fi = [0.0072, 0.0106, 0.0089, 0.0531, 0.0038, 0.0346, 0.0072, 0.0153, 0.0145, 0.0055, 0.0197, 0.0062, 0.0048, 0.0076, 0.0058, 0.2220, 0.0092, 0.0000, 0.0000, 0.0890, 0.0888, 0.0466, 0.1617, 0.0348, 0.0060, 0.0019, 0.0003, 0.0000, 0.0000, 0.0443, 0.0234, 0.0000, 0.0017, 0.0117, 0.0109, 0.0086, 0.0079, 0.0037, 0.0028, 0.0032, 0.0073, 0.0064, 0.0032, 0.0000]
  2. abs_pcc = [0.001812259, 0.0083, 0.008173611, 0.08929963, 0.000920799, 0.036650806, 0.005985803, 0.025005431, 0.022972425, 0.002313427, 0.055227088, 0.00703732, 0.004531705, 0.012707925, 0.007892154, 0.727795879, 0.026761054, 0.0005435, 0.0005078, 0.724927526, 0.675403287, 0.632647985, 0.732096476, 0.624978514, 0.008864658, 0.003122044, 0.002051207, 0.001733915, 0.0009472, 0.65126691, 0.612432306, 0.0008694, 0.003734737, 0.573546297, 0.534968561, 0.478793835, 0.470698187, 0.011417904, 0.008344075, 0.012650306, 0.488948704, 0.264414578, 0.018898223, 0.019530998]
  3. names = ['holiday_today', 'day_of_year', 'week_of_year', 'id', 'holiday_tomorrow', 'day_of_Week', 'day', 'price', 'saturday', 'wind', 'hours_open', 'open_dinner', 'rain', 'temp', 'month', 'last_7_days', 'friday', 'n_competitors', 'n_ratings', 'last_28_days', '7_days_ago', 'last_364_days', 'last_14_days', '1_days_ago', 'year', 'store-id', 'lng', 'sunday', 'distance_to_city_center', '14_days_ago', '28_days_ago', 'rating', 'lat', '6_days_ago', '2_days_ago', '5_days_ago', '4_days_ago', 'thursday', 'open_lunch', 'wednesday', '3_days_ago', '364_days_ago', 'tuesday', 'monday']
  4.  
  5. fig = plt.figure(figsize=(8.27,11.69))
  6. ax = fig.add_subplot()
  7. ax.scatter(fi, abs_pcc, alpha=0.8, edgecolors='none', s=30)
  8.  
  9. for i, txt in enumerate(names):
  10. ax.annotate(txt, xy=(fi[i],abs_pcc[i]), xycoords='data', xytext=(5,0), textcoords='offset points')
  11.  
  12. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement