MCPcopy Index your code
hub / github.com/Arnesh-26/supply_packaging

github.com/Arnesh-26/supply_packaging @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
78 symbols 385 edges 66 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

📦 Packaging Prediction in Supply Chain 📌 Overview

This project focuses on predicting the optimal packaging type (Glass or Plastic) in a supply chain using environmental and logistical features. A Random Forest classification model is trained to assist organizations in making data-driven packaging decisions, improving cost efficiency, sustainability, and operational reliability.

🎯 Problem Statement

Choosing the right packaging material is critical in supply chains, as it impacts:

Product safety

Transportation costs

Environmental sustainability

Damage and breakage rates

Traditional decision-making methods rely on heuristics. This project applies machine learning to automate and optimize packaging selection.

🧠 Solution Approach

Preprocessed supply chain data containing environmental and logistics-related attributes

Applied Random Forest Classifier to capture non-linear relationships

Evaluated model performance using standard classification metrics

Extracted insights to support supply chain optimization

📊 Features Used

Transportation distance

Temperature conditions

Humidity levels

Fragility index

Weight of shipment

Handling complexity

Environmental exposure factors

⚙️ Tech Stack

Programming Language: Python

Libraries & Tools:

NumPy

Pandas

Scikit-learn

Matplotlib / Seaborn

Model: Random Forest Classifier

🚀 Workflow

Data collection and cleaning

Feature engineering and encoding

Train-test split

Model training using Random Forest

Performance evaluation

Insight extraction for decision-making

📈 Model Performance

Achieved high classification accuracy

Robust against overfitting due to ensemble learning

Performs well on unseen data

Evaluation Metrics:

Accuracy

Precision

Recall

F1-score

🔍 Key Insights

Environmental factors strongly influence packaging choice

Glass packaging is preferred under controlled conditions

Plastic packaging is more suitable for longer distances and high handling risk

Random Forest effectively captures feature interactions

🌱 Future Enhancements

Add real-time prediction via REST API

Incorporate cost and carbon footprint metrics

Try advanced models (XGBoost, LightGBM)

Deploy using Flask or FastAPI

🤝 Contribution

Contributions are welcome! Feel free to fork the repository and submit pull requests.

Extension points exported contracts — how you extend this code

Message (Interface)
(no doc)
src/components/ChatBot.tsx
State (Interface)
(no doc)
src/hooks/use-toast.ts
PredictionData (Interface)
(no doc)
src/components/MLPredictionInterface.tsx
PredictionResult (Interface)
(no doc)
src/components/MLPredictionInterface.tsx
CommandDialogProps (Interface)
(no doc)
src/components/ui/command.tsx
TextareaProps (Interface)
(no doc)
src/components/ui/textarea.tsx

Core symbols most depended-on inside this repo

cn
called by 196
src/lib/utils.ts
dispatch
called by 5
src/hooks/use-toast.ts
handleInputChange
called by 4
src/components/MLPredictionInterface.tsx
useCarousel
called by 4
src/components/ui/carousel.tsx
useSidebar
called by 4
src/components/ui/sidebar.tsx
useFormField
called by 4
src/components/ui/form.tsx
getPayloadConfigFromPayload
called by 3
src/components/ui/chart.tsx
toast
called by 3
src/hooks/use-toast.ts

Shape

Function 66
Interface 9
Route 3

Languages

TypeScript87%
Python13%

Modules by API surface

src/hooks/use-toast.ts9 symbols
backend.py7 symbols
src/components/ui/pagination.tsx5 symbols
src/components/MLPredictionInterface.tsx5 symbols
src/components/ChatBot.tsx5 symbols
src/components/ui/sheet.tsx3 symbols
src/components/ui/drawer.tsx3 symbols
src/components/ui/command.tsx3 symbols
src/components/ui/chart.tsx3 symbols
src/App.tsx3 symbols
app.py3 symbols
src/hooks/use-mobile.tsx2 symbols

For agents

$ claude mcp add supply_packaging \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact