4 weeks ago
Problem I am solving:
Reads the raw sports data IPL CSV → bronze layer
Cleans and aggregates → silver layer
Summarizes team stats → gold layer
Prepares ML-ready features and trains a Random Forest classifier to predict match winners
Getting error: [PARSE_SYNTAX_ERROR] Syntax error at or near end of input. SQLSTATE: 42601 when i run code:
4 weeks ago - last edited 4 weeks ago
Hi @ManojkMohan ,
This section here:
df_ml
.select("features", "label")
.limit(10000) # Optional: limit for performance
.collect()
I don't see anywhere prior to this code block where you actually created "df_ml"? Has that dataframe even been created prior to this? If yes, are you certain both of those columns ["features", "label"] are present in that dataframe.
All the best,
BS
4 weeks ago - last edited 4 weeks ago
Hi @ManojkMohan ,
This section here:
df_ml
.select("features", "label")
.limit(10000) # Optional: limit for performance
.collect()
I don't see anywhere prior to this code block where you actually created "df_ml"? Has that dataframe even been created prior to this? If yes, are you certain both of those columns ["features", "label"] are present in that dataframe.
All the best,
BS
4 weeks ago
@BS_THE_ANALYST any framework recommendations for which ML to chose based on data , the way i have solved the problem for now
Data is ingested and converted to a usable format.
Building Block: Data Source → Pandas DataFrame
Value Added:
Building Block: Feature Engineering
Value Added:
Building Block: Data Quality Checks
Value Added:
Building Block: Model Validation Setup
Value Added:
Building Block: ML Model
Value Added:
Building Block: Model Evaluation
Value Added:
Output: Prediction Comparison
Building Block: Results Visualization / Reporting
Value Added:
4 weeks ago
4 weeks ago
@ManojkMohan thanks for sharing this, I'm looking at starting an ML project in the coming weeks, I might have to bring this forward 😂. Feeling motivated with that confusion matrix in your output 👍.
Congrats on getting it working!
All the best,
BS
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now