omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. mkeywood

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello β€” I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 1
    • Topics 3
    • Posts 11
    • Best 1
    • Controversial 0
    • Groups 0

    mkeywood

    @mkeywood

    5
    Reputation
    696
    Profile views
    11
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    mkeywood Unfollow Follow

    Best posts made by mkeywood

    • Machine Learning

      I don't know if anyone's interested, but I took a combination of the Sketch example, along with some other examples I've seen online, and come up with the following.

      It's a simple Neural Network class, prepare data, train it and it can hopefully guess what you draw to test it with.

      Simply:

      • Draw three positive image, all the same. I.e. Draw three smiley faces.
      • Then draw three negative images, all the same. I.e. Draw three sad faces.
      • Then press the Train button.
      • OK so now it's ready. Draw either a copy of the positive or negative image, and see if it gets it right πŸ˜€

      I don't claim this is the best code ever, or even efficient algorithm and could be tuned much better, but thought I'd share it anyway πŸ˜€

      https://gist.github.com/d77486f38d5d23d6ffd696e7bf0545fc

      posted in Pythonista
      mkeywood
      mkeywood

    Latest posts made by mkeywood

    • RE: Machine Learning

      @jmv38 No problem at all πŸ˜€

      posted in Pythonista
      mkeywood
      mkeywood
    • RE: Machine Learning

      @jmv38, looks like some great updates. I look forward to looking over them this weekend :)

      @Matteo, no problem at all. @jmv38 has built on it massively from what I did. Really this is here for anyone to enjoy.

      Thanks

      posted in Pythonista
      mkeywood
      mkeywood
    • RE: Machine Learning

      @jmv38 this is awesome!!

      Glad it was helpful, but you've taken it to another level completely πŸ˜€
      That's some really great additions. Really amazing. I look forward to see what you do next πŸ˜€

      Thanks πŸ˜€

      posted in Pythonista
      mkeywood
      mkeywood
    • RE: Machine Learning

      @cvp, thanks πŸ˜„ My daughter played with lots of different sketches and found some more reliable than others.

      posted in Pythonista
      mkeywood
      mkeywood
    • RE: Machine Learning

      @jmv38, thanks.

      Currently it’s quite simple and so not massively extensible for things like CNN. Although that is the area I’m looking at now πŸ˜„

      As for additional layers, we could add them relatively easy. Basically it’s all geared around variables W1 and W2 that are the weights between the input and hidden layer, and hidden and output layers respectively.
      Extending the init, forward, backward etc should be easy enough to extend.
      Something else I can look at πŸ˜„

      posted in Pythonista
      mkeywood
      mkeywood
    • Machine Learning

      I don't know if anyone's interested, but I took a combination of the Sketch example, along with some other examples I've seen online, and come up with the following.

      It's a simple Neural Network class, prepare data, train it and it can hopefully guess what you draw to test it with.

      Simply:

      • Draw three positive image, all the same. I.e. Draw three smiley faces.
      • Then draw three negative images, all the same. I.e. Draw three sad faces.
      • Then press the Train button.
      • OK so now it's ready. Draw either a copy of the positive or negative image, and see if it gets it right πŸ˜€

      I don't claim this is the best code ever, or even efficient algorithm and could be tuned much better, but thought I'd share it anyway πŸ˜€

      https://gist.github.com/d77486f38d5d23d6ffd696e7bf0545fc

      posted in Pythonista
      mkeywood
      mkeywood
    • RE: Are the Pythonista Game Tutorials / Examples available online?

      Thanks, yeah makes sense. I just wondered if there was an 'official' online location, but that will certainly work for what I want.

      Thanks

      posted in Pythonista
      mkeywood
      mkeywood
    • Are the Pythonista Game Tutorials / Examples available online?

      Hi,

      There are some excellent game examples / tutorial in Pythonista examples (i think it's about 7 parts), but I wonder if they are available online too, or just inside Pythonista?
      Having recently purchased it i'm having great fun getting to grips with it all but don't always have my iPad with me when ideas pop into my head and having those examples available would help.

      Just wondered :)

      Thanks

      posted in Pythonista
      mkeywood
      mkeywood
    • RE: Getting pixel data from a Scene?

      Thank you so much. This is excellent.
      Really appreciate the help and the time you’ve taken to respond.
      Thanks πŸ˜„πŸ˜„

      posted in Pythonista
      mkeywood
      mkeywood
    • Getting pixel data from a Scene?

      Hi,

      Is there an equivalent of JavaScript getImageData to be able to get pixel data from a Scene?

      In Javascript I would use something like:

      var c = document.getElementById("myCanvas");
      var ctx = c.getContext("2d");
      var imgData = ctx.getImageData(10, 10, 50, 50);

      And I’d have a lovely array of pixel data I could use.

      Is there anything similar in Pythonista for data in a Scene?

      Thanks

      Martin

      posted in Pythonista
      mkeywood
      mkeywood