0
0
Prompt Engineering / GenAIml~12 mins

Why agents make autonomous decisions in Prompt Engineering / GenAI - Model Pipeline Impact

Choose your learning style9 modes available
Model Pipeline - Why agents make autonomous decisions

This pipeline shows how an autonomous agent learns to make decisions on its own by observing data, learning patterns, and improving its choices over time.

Data Flow - 6 Stages
1Data Collection
1000 rows x 6 columnsGather sensor readings and environment states1000 rows x 6 columns
Row example: [temperature=22, light=300, obstacle=0, speed=5, direction=90, reward=1]
2Preprocessing
1000 rows x 6 columnsNormalize sensor values and encode categorical data1000 rows x 6 columns
Normalized speed from 5 to 0.5, direction encoded as angle in radians
3Feature Engineering
1000 rows x 6 columnsCreate new features like distance to obstacle and speed change1000 rows x 8 columns
Added features: distance_to_obstacle=10, speed_change=0.1
4Model Training
800 rows x 8 columnsTrain decision-making model on training dataTrained model
Model learns to predict best action given sensor inputs
5Validation
200 rows x 8 columnsTest model on unseen data to check accuracyValidation accuracy and loss metrics
Accuracy=0.85, Loss=0.35
6Autonomous Decision Making
New sensor data (1 row x 8 columns)Model predicts best action to takeAction decision (e.g., move forward, turn left)
Input: sensor readings; Output: action=turn left
Training Trace - Epoch by Epoch

Loss
0.8 |****
0.7 |*** 
0.6 |**  
0.5 |*   
0.4 |*   
0.3 |    
     1 2 3 4 5 Epochs
EpochLoss ↓Accuracy ↑Observation
10.750.5Model starts learning, accuracy at chance level
20.60.65Loss decreases, accuracy improves
30.480.75Model learns important patterns
40.40.8Better decision making emerging
50.350.85Model converges with good accuracy
Prediction Trace - 4 Layers
Layer 1: Input sensor data
Layer 2: Model hidden layers
Layer 3: Output layer
Layer 4: Decision
Model Quiz - 3 Questions
Test your understanding
What happens to the data shape after feature engineering?
AIt decreases from 6 to 4 columns
BIt stays the same at 6 columns
CIt increases from 6 to 8 columns
DIt changes from rows to columns
Key Insight
Autonomous agents learn to make decisions by transforming raw sensor data into meaningful features, training a model to predict the best actions, and improving accuracy over time through repeated learning.