-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAI_Planning.py
More file actions
101 lines (94 loc) · 5.75 KB
/
AI_Planning.py
File metadata and controls
101 lines (94 loc) · 5.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
class AIPlanner:
def __init__(self, knowledge_base):
self.kb = knowledge_base
self.learning_paths = self._initialize_learning_paths()
def _initialize_learning_paths(self):
return {
"AI Engineer": [
{"step": 1, "action": "Python शिका",
"duration": "2 महिने", "priority": "High"},
{"step": 2, "action": "Machine Learning मूलतत्त्वे शिका",
"duration": "3 महिने", "priority": "High"},
{"step": 3, "action": "Deep Learning frameworks (TensorFlow/PyTorch) शिका",
"duration": "2 महिने", "priority": "Medium"},
{"step": 4, "action": "AI प्रकल्प तयार करा",
"duration": "1 महिना", "priority": "High"},
{"step": 5, "action": "GitHub वर portfolio तयार करा",
"duration": "2 आठवडे", "priority": "Medium"},
{"step": 6, "action": "Internship साठी अर्ज करा",
"duration": "1 महिना", "priority": "High"}
],
"Data Scientist": [
{"step": 1, "action": "Python आणि pandas शिका",
"duration": "2 महिने", "priority": "High"},
{"step": 2, "action": "Statistics आणि Data Analysis शिका",
"duration": "3 महिने", "priority": "High"},
{"step": 3, "action": "Data Visualization (Matplotlib, Seaborn) शिका",
"duration": "1 महिना", "priority": "Medium"},
{"step": 4, "action": "Machine Learning algorithms शिका",
"duration": "2 महिने", "priority": "High"},
{"step": 5, "action": "Real-world data प्रकल्प करा",
"duration": "2 महिने", "priority": "High"},
{"step": 6, "action": "Kaggle competitions मध्ये सहभागी व्हा",
"duration": "1 महिना", "priority": "Medium"}
],
"Web Developer": [
{"step": 1, "action": "HTML, CSS आणि JavaScript शिका",
"duration": "2 महिने", "priority": "High"},
{"step": 2, "action": "Frontend framework (React) शिका",
"duration": "2 महिने", "priority": "High"},
{"step": 3, "action": "Backend development (Node.js) शिका",
"duration": "2 महिने", "priority": "Medium"},
{"step": 4, "action": "Database (MongoDB/SQL) शिका",
"duration": "1 महिना", "priority": "Medium"},
{"step": 5, "action": "Web application तयार करा",
"duration": "2 महिने", "priority": "High"},
{"step": 6, "action": "Portfolio website तयार करा",
"duration": "1 महिना", "priority": "High"}
],
"Research Scientist": [
{"step": 1, "action": "Research methodology शिका",
"duration": "3 महिने", "priority": "High"},
{"step": 2, "action": "Academic writing सराव करा",
"duration": "2 महिने", "priority": "High"},
{"step": 3, "action": "Advanced mathematics शिका",
"duration": "4 महिने", "priority": "High"},
{"step": 4, "action": "Research paper वाचा आणि समजून घ्या",
"duration": "2 महिने", "priority": "Medium"},
{"step": 5, "action": "Research proposal तयार करा",
"duration": "1 महिना", "priority": "High"},
{"step": 6, "action": "Academic conferences मध्ये सहभागी व्हा",
"duration": "2 महिने", "priority": "Medium"}
]
}
def generate_plan(self, career_name: str, student_skills: List[str]) -> Dict[str, Any]:
if career_name not in self.learning_paths:
return {"error": "Career not found"}
base_plan = self.learning_paths[career_name].copy()
career = self.kb.careers[career_name]
# Customize plan based on existing skills
customized_plan = []
for step in base_plan:
# Check if student already has relevant skills for this step
step_skill_match = any(
skill in student_skills for skill in career.required_skills)
if not step_skill_match or "शिका" in step["action"]:
customized_plan.append(step)
return {
"career": career_name,
"total_steps": len(customized_plan),
"estimated_duration": self._calculate_total_duration(customized_plan),
"plan": customized_plan,
"missing_skills": list(set(career.required_skills) - set(student_skills))
}
def _calculate_total_duration(self, plan: List[Dict]) -> str:
total_months = 0
for step in plan:
duration = step["duration"]
if "महिने" in duration:
months = int(duration.split()[0])
total_months += months
elif "आठवडे" in duration:
weeks = int(duration.split()[0])
total_months += weeks / 4
return f"{total_months} महिने"