create deepReinforcementLearning repo, test print vehicle

This commit is contained in:
2024-06-11 22:24:59 +02:00
parent 99e87a7b5b
commit fca991eb37
6 changed files with 1075 additions and 0 deletions
@@ -0,0 +1,24 @@
#include "learn_to_drive.h"
float reLU(float x){
if(x>0) return x;
return 0;
}
float d_reLU(float x){
if (x>0) return 1;
return 0;
}
float L2(float t, float o){
return (o - t) * (o - t)/2;
}
float D_L2(float t, float o){
return (o - t);
}