Mohamedelrefaie / DrivAerNet

A Large-Scale Multimodal Car Dataset with Computational Fluid Dynamics Simulations and Deep Learning Benchmarks
MIT License
133 stars 19 forks source link

The computation of R2 #11

Closed gcblqqqqqqqqqqqqqqq closed 1 month ago

gcblqqqqqqqqqqqqqqq commented 1 month ago

Hello, I would like to ask you about the calculation of R². While reproducing your code, I found that R² is consistently negative, and I haven't figured out the reason yet. I want to ask you if in your code R² is calculated for each batch and then averaged, is it correct to average R²? I wonder if the negative value of my R² might be related to this. Perhaps you could give me some guidance. Thank you!

Mohamedelrefaie commented 1 month ago

It's hard to judge why your R² is negative without more details. Could you clarify: which model are you training (RegDGCNN, RegPointNet, or the graph model)? Are you using the parametric data or 3D meshes? If it's 3D meshes, are you working with raw STLs or preprocessed point clouds? In general, R² is just used to evaluate the model's performance but the mse is the loss used for training.

gcblqqqqqqqqqqqqqqq commented 1 month ago

Hello,The model I trained is RedgCNN, and the dataset used is DrivAerNet_STLs_Combined. The R2 value has consistently been negative and LOSS is decreasing and the performance is decent.