├── .gitattributes ├── data.pkl ├── SupplyChain.csv ├── README.md └── SupplyChain_Description.csv /.gitattributes: -------------------------------------------------------------------------------- 1 | data.pkl filter=lfs diff=lfs merge=lfs -text 2 | SupplyChain.csv filter=lfs diff=lfs merge=lfs -text 3 | -------------------------------------------------------------------------------- /data.pkl: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:e58385bf2af1ce1f0a3099eec8b3434f93df25d0302bd087b9194e036dfc93c6 3 | size 80078343 4 | -------------------------------------------------------------------------------- /SupplyChain.csv: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:fa6d022ed437155e1a2f0378710602848703c8a7f203f7ff5d77805bf8480aa6 3 | size 95910149 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Supplychain 2 | 1. Supply_chain_rfm.ipynb 进行了数据预处理,将用户用rfm模型划分成8类。 3 | 2. Supply_chain_model.ipynb 将数据用多种机器学习模型进行 欺诈订单分类,延迟发货分类, 销售额预测, 销售数量预测。 4 | 3. data.pkl为Supply_chain_rfm.ipynb处理后的数据,方便后续建模。 5 | 4. SupplyChain.csv为原始数据 6 | 5. SupplyChain_Description.csv为原始数据描述 7 | -------------------------------------------------------------------------------- /SupplyChain_Description.csv: -------------------------------------------------------------------------------- 1 | FIELDS,DESCRIPTION 2 | Type,: Type of transaction made 3 | Days for shipping (real) ,: Actual shipping days of the purchased product 4 | Days for shipment (scheduled),: Days of scheduled delivery of the purchased product 5 | Benefit per order,: Earnings per order placed 6 | Sales per customer,: Total sales per customer made per customer 7 | Delivery Status,": Delivery status of orders: Advance shipping , Late delivery , Shipping canceled , Shipping on time" 8 | Late_delivery_risk ,": Categorical variable that indicates if sending is late (1), it is not late (0)." 9 | Category Id,: Product category code 10 | Category Name,: Description of the product category 11 | Customer City,: City where the customer made the purchase 12 | Customer Country,: Country where the customer made the purchase 13 | Customer Email,: Customer's email 14 | Customer Fname,: Customer name 15 | Customer Id,: Customer ID 16 | Customer Lname,: Customer lastname 17 | Customer Password,: Masked customer key 18 | Customer Segment,": Types of Customers: Consumer , Corporate , Home Office" 19 | Customer State,: State to which the store where the purchase is registered belongs 20 | Customer Street,: Street to which the store where the purchase is registered belongs 21 | Customer Zipcode,: Customer Zipcode 22 | Department Id,: Department code of store 23 | Department Name,: Department name of store 24 | Latitude,: Latitude corresponding to location of store 25 | Longitude,: Longitude corresponding to location of store 26 | Market,": Market to where the order is delivered : Africa , Europe , LATAM , Pacific Asia , USCA" 27 | Order City,: Destination city of the order 28 | Order Country,: Destination country of the order 29 | Order Customer Id,: Customer order code 30 | order date (DateOrders),: Date on which the order is made 31 | Order Id,: Order code 32 | Order Item Cardprod Id,: Product code generated through the RFID reader 33 | Order Item Discount,: Order item discount value 34 | Order Item Discount Rate ,: Order item discount percentage 35 | Order Item Id,: Order item code 36 | Order Item Product Price ,: Price of products without discount 37 | Order Item Profit Ratio,: Order Item Profit Ratio 38 | Order Item Quantity,: Number of products per order 39 | Sales,: Value in sales 40 | Order Item Total ,: Total amount per order 41 | Order Profit Per Order,: Order Profit Per Order 42 | Order Region,": Region of the world where the order is delivered : Southeast Asia ,South Asia ,Oceania ,Eastern Asia, West Asia , West of USA , US Center , West Africa, Central Africa ,North Africa ,Western Europe ,Northern , Caribbean , South America ,East Africa ,Southern Europe , East of USA ,Canada ,Southern Africa , Central Asia , Europe , Central America, Eastern Europe , South of USA " 43 | Order State,: State of the region where the order is delivered 44 | Order Status,": Order Status : COMPLETE , PENDING , CLOSED , PENDING_PAYMENT ,CANCELED , PROCESSING ,SUSPECTED_FRAUD ,ON_HOLD ,PAYMENT_REVIEW" 45 | Product Card Id,: Product code 46 | Product Category Id,: Product category code 47 | Product Description,: Product Description 48 | Product Image,: Link of visit and purchase of the product 49 | Product Name,: Product Name 50 | Product Price,: Product Price 51 | Product Status,": Status of the product stock :If it is 1 not available , 0 the product is available " 52 | Shipping date (DateOrders) ,: Exact date and time of shipment 53 | Shipping Mode,": The following shipping modes are presented : Standard Class , First Class , Second Class , Same Day" 54 | --------------------------------------------------------------------------------