机器学习每周挑战——基于时间序列的商店销售数据预测

Dataset Description

In this competition, you will predict sales for the thousands of product families sold at Favorita stores located in Ecuador. The training data includes dates, store and product information, whether that item was being promoted, as well as the sales numbers. Additional files include supplementary information that may be useful in building your models.

File Descriptions and Data Field Information

train.csv

  • The training data, comprising time series of features store_nbr , family , and onpromotion as well as the target sales.
  • store_nbr identifies the store at which the products are sold.
  • family identifies the type of product sold.
  • sales gives the total sales for a product family at a particular store at a given date. Fractional values are possible since products can be sold in fractional units (1.5 kg of cheese, for instance, as opposed to 1 bag of chips).
  • onpromotion gives the total number of items in a product family that were being promoted at a store at a given date.

test.csv

  • The test data, having the same features as the training data. You will predict the target sales for the dates in this file.
  • The dates in the test data are for the 15 days after the last date in the training data.

sample_submission.csv

  • A sample submission file in the correct format.

stores.csv

  • Store metadata, including city , state , type , and cluster.
  • cluster is a grouping of similar stores.

oil.csv

  • Daily oil price. Includes values during both the train and test data timeframes. (Ecuador is an oil-dependent country and it's economical health is highly vulnerable to shocks in oil prices.)

holidays_events.csv

  • Holidays and Events, with metadata
  • NOTE: Pay special attention to the transferred column. A holiday that is transferred officially falls on that calendar day, but was moved to another date by the government. A transferred day is more like a normal day than a holiday. To find the day that it was actually celebrated, look for the corresponding row where type is Transfer. For example, the holiday Independencia de Guayaquil was transferred from 2012-10-09 to 2012-10-12, which means it was celebrated on 2012-10-12. Days that are type Bridge are extra days that are added to a holiday (e.g., to extend the break across a long weekend). These are frequently made up by the type Work Day which is a day not normally scheduled for work (e.g., Saturday) that is meant to payback the Bridge.
  • Additional holidays are days added a regular calendar holiday, for example, as typically happens around Christmas (making Christmas Eve a holiday).

Additional Notes

  • Wages in the public sector are paid every two weeks on the 15 th and on the last day of the month. Supermarket sales could be affected by this.
  • A magnitude 7.8 earthquake struck Ecuador on April 16, 2016. People rallied in relief efforts donating water and other first need products which greatly affected supermarket sales for several weeks after the earthquake.

这里的代码是kaggle中一位大佬的代码,这里我只是看懂了代码所表达的意思,如果各位想学习一下,可以私信我要源码,或者去kaggle上找这篇原作,非常厉害的一位大佬。由于代码太多,且环境是jupyter notebook,代码块也非常多,复制粘贴太麻烦。因此我这里使用截图。

相关推荐
汤姆宝库5 小时前
蒸馏的三层实现:logits级、序列级与数据级
人工智能·深度学习·机器学习
云半S一6 小时前
Agent学习总结补充:2
人工智能·经验分享·笔记·agent·学习分享
wflynn7 小时前
Inkling 2 Mini:26B 参数循环 Transformer 的本地多模态模型
人工智能·ai
hryou09228 小时前
模型已经会欺骗评估员?24人爆料,OpenAI为何考虑停训
人工智能·ai编程
Csvn8 小时前
Agent 能调工具那天,权限就该已经修好了——最小权限 + 人工确认(S03)
人工智能·aigc·agent
Eyfcom8 小时前
〖物流低代码实战 06〗AI 生成 Schema 的工程边界:大模型能否直接接管快递软件的页面搭建?
人工智能·低代码·快递软件·物流低代码实战
甲维斯8 小时前
GLM5.4和GPT6.1赛马,搞定超级玛丽32关!
人工智能
qyr67898 小时前
全球汽车和航空航天用磁铁材料市场竞争格局变化趋势
大数据·人工智能·物联网·自动化·汽车和航空航天用磁铁材料
ZONGYUAN-ROOT9 小时前
【开源发布】约束运行时(Constraint Runtime)开源发布:给智能体规模化部署加四层护栏
人工智能·开源