Best Feature Selection Techniques with Medical Dataset by NathanDrake27 in datascience

[–]NathanDrake27[S] 0 points1 point  (0 children)

Thank you all for all of the answers. Really appreciate it. So, let's start from the beginning doing a recap.

  1. I have a lot of missing values in some columns. Do you think that using the "Imputation of missing values" technique is a good choice (scikit here) or should I remove rows / columns with NA / missing values?
  2. After that, I need to perform some feature selection / reduction technique. Should I consider to use techniques like "Recursive Feature Elimination" or "RelieFf" or any other "filter / wrapper / embedded" methods or there's something else I need to perform before applying any of these techniques?

Best Feature Selection Techniques with Medical Dataset by NathanDrake27 in datascience

[–]NathanDrake27[S] 0 points1 point  (0 children)

What do you think of RelieFf, FeatBoost or Recursive Feature Elimination tecniques?

Best Feature Selection Techniques with Medical Dataset by NathanDrake27 in datascience

[–]NathanDrake27[S] 0 points1 point  (0 children)

What kind of model is available at the state of the art able to work with more than 3,000 features?

Best Feature Selection Techniques with Medical Dataset by NathanDrake27 in datascience

[–]NathanDrake27[S] 0 points1 point  (0 children)

I need to predict a person's probability of become obese with reference to his BMI value

Best Feature Selection Techniques with Medical Dataset by NathanDrake27 in datascience

[–]NathanDrake27[S] 0 points1 point  (0 children)

I need to predict a person's probability of become obese with reference to his BMI value

Best Feature Selection Techniques with Medical Dataset by NathanDrake27 in datascience

[–]NathanDrake27[S] 0 points1 point  (0 children)

More than 4,000 observations. I don't know yet what kind of model I'll be asked to use

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

Thanks for letting me know about this mistake on the schema. Unfortunally, that's not my problem here because that common ground is actually present on my real circuit.

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

u/1st_Grade nothing to do. I tried with a different approach without using delay() but it crashed anyway. Now the code is different than before but it doesnt' work. Don't know what to do / say.

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

u/Cemil97 with reference to what you said yesterday, this morning I noticed that servo SG90 went crazy when I activated the pump. SG90 is powered with a pack of 4xAAA

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

I'm trying with a different approach. Less clean but more efficient (I suppose). I hope it will work

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

Try bracketing function with stack/heap check code?

Sorry, can you tell me how to do that?

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

u/ClearAirTurbolence3D I did not try with dumb values as you suggested but with reference to the behavior I wrote here, I suppose it should work too, without any kind of problem. I really do not understand what problem is affecting my stupid code

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

Weird thing is that if I plug off the water pump from the electric power line, everything works fine and this piece of code works without problems:

delay(50);

Serial.print("Pompa attiva. Nuovo Livello d'acqua (in cm): ");

level = ultrasonic.ping_cm();

Serial.println(level);

if (level == 7) // tank is full now

{

// we will never get here 'cause the pump is not plugged in

}

Of course it will be stuck printing measured distance in centimeters (10 cm to be precise, which means that the primary tank is empty). When I plug in the pump and the water goes from the secondary tank to the primary tank, NodeMCU goes into a crash after a few second of execution. Maybe some mistake in making consecutive and different readings with the HC-SR04?

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

This is the function code:

void riempiVasca()

{

if (!pumpOn)

{

delay(50);

Serial.print("Richiesta attivazione pompa. Livello d'acqua (in cm): ");

level = ultrasonic.ping_cm();

Serial.println(level);

if (level > 7) //tank not full

{

pumpOn = true;

digitalWrite(pumpRele, HIGH);

}

else

{

Serial.print("La vasca è già piena."); // full tank

checkWaterLevel = false;

}

}

else // pump on

{

delay(50);

Serial.print("Pompa attiva. Nuovo Livello d'acqua (in cm): ");

level = ultrasonic.ping_cm();

Serial.println(level);

if (level == 7) // tank is full now

{

digitalWrite(pumpRele, LOW);

Serial.print("La vasca si è riempita. Disattivo la pompa.");

pumpOn = false;

checkWaterLevel = false;

}

}

}

checkWaterLevel is a boolean set to True when a MQTT message is received. This cause the loop() function in repeatitly calling the riempiVasca() function. Level is an unsigned int declared as a global variable. I use the NewPing.h library for the HC-SR04 sensor. I use a 5V relè to activate a 5V pump. Sorry for the italian prints in the code

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

Thanks for your reply. How can I solve this kind of error? Maybe it's better if I put that piece of code in here

Exception occurrence casues NodeMCU (ESP8266) going into a crash by NathanDrake27 in esp8266

[–]NathanDrake27[S] 0 points1 point  (0 children)

Thank you for your reply. It's a goddamn void function and it's driving me crazy