Giter VIP home page Giter VIP logo

Comments (5)

aaparella avatar aaparella commented on August 30, 2024

It isn't, it's used strictly for calculations. Can I see how you're using the network?

from drago.

danhardman avatar danhardman commented on August 30, 2024
func main() {
    net := Drago.New(.1, 10000, []int{3, 5, 5, 1}, []Drago.Activator{new(Drago.Sigmoid), new(Drago.Sigmoid)})
    //net.Verbose = false
    samples := [][][]float64{
        {{20.937, 6.17, 22.792}, {6.42501}},
        {{20.375, 5.27, 20.5631}, {0.505808}},
        {{20.625, 5.27, 21.569}, {1.90032}},
        {{20.562, 5.27, 22.8776}, {6.343}},
        {{20.187, 5.27, 22.7772}, {6.58899}},
        //Lots more data
    }
    net.Learn(samples)
    fmt.Println(net.Predict([]float64{20.937, 6.17, 22.792}).At(0, 0))
}

from drago.

aaparella avatar aaparella commented on August 30, 2024

How many samples would you say you have, roughly? If you have an appreciable number, you should set the number of iterations far far lower, try 25 or something in that ballpark. Iterating 10000 times will lead to extreme overfitting, and negatively impact your results.

from drago.

danhardman avatar danhardman commented on August 30, 2024

Really wouldn't have expected that, typically you want a lot of iterations surely? Is this set up different to others I'm likely to have used? Being feed forward maybe? I have 50 samples.

from drago.

aaparella avatar aaparella commented on August 30, 2024

If you have too many iterations, you will overfit to the dataset that you trained on, and will get poor results when you are predicting values that were not in your original dataset. You can also experiment with different topologies / learning rates / numbers of iterations to see what will give you the best results. Also, getting more data samples would help, 50 is very few.

from drago.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.