How can I implement a multilayer social network in R?

After you're done training and testing a neural network, how do you actually implement a user's inputs as the inputs for the network in R?

  • Answer:

    Assuming you're using the nnet package, you can take a data frame of new examples (call it newdata) and call predict(network,newdata,type="raw"). That will generate a matrix containing in each row the output layer of network.

Ross Dempsey at Quora Visit the source

Was this solution helpful to you?

Other answers

Most trained models can be used by function: prediction(model,new_data,type="particular_type") However, since you've already tested, I doubt that it would be the real question here Please specify what exact step you're concerning here? Could it be one of these: How to develop user interface to gather data? How to synthesize new data gathered to be ready for the model? How to update trained model by new data? (in that case, just re-run the model)

Nguyen Colin Phuc

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.