El problema consiste en convertir una estructura condicional a vector o en otras palabras convertir las los resultados de randomforest a Vector de reglas
De preferencia se desea en PHP y guardar el vector en una tabla Mysql
Por ejemplo:
Esto:
windy = TRUE
| humidity = high : no
| humidity = normal
| | outlook = sunny : yes
| | outlook = overcast : yes
| | outlook = rainy : no
windy = FALSE
| outlook = sunny : no
| outlook = overcast : yes
| outlook = rainy : yes
Deberia convertirse en esto:
outlook | temperature | humidity | windy | play
------------------------------------------------
sunny X Normal True yes
overcast x Normal True yes
rainy x Normal True no
x x high True no
sunny x x False no
overcast x x False yes
rainy x x Yes yes
------------------------------------------------
Notas
* Cuando el arbol no tiene informacion se colocará al vector "X"
* Deveria funcionar en un arbol de varios subniveles
* Para tener más detalle, puede generar los arboles radomforest en weka la data de ejemplo [login to view URL]
Puedes usar esta data para validar:
humidity = high
| outlook = sunny : no
| outlook = overcast : yes
| outlook = rainy
| | windy = TRUE : no
| | windy = FALSE : yes
humidity = normal : yes
------------------------------
outlook = sunny
| humidity = high : no
| humidity = normal : yes
outlook = overcast : yes
outlook = rainy
| windy = TRUE : no
| windy = FALSE : yes
------------------------------
outlook = sunny
| temperature = hot : no
| temperature = mild : yes
| temperature = cool : yes
outlook = overcast : yes
outlook = rainy : yes
I will be able to create and develop by your requirements and also create functionality based on your requirement. Please let me know when can we discuss more on this project
Thanks
Rajib
I built everything from the front-end to the back-end and everything in between.
I have more than eight years of experience in web design & development, testing software program, and system administration .