1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do people code up "learning" abilities in posters?

Discussion in 'General Programming Chat' started by simpleonline1234, Sep 6, 2011.

  1. simpleonline1234

    simpleonline1234 Junior Member

    Joined:
    Jan 26, 2010
    Messages:
    169
    Likes Received:
    13
    I'm a 50% noob when it comes to programming. I can code up some basic bots but never really understood the learning feature in programs.

    What method are they using to create a "learning" ability in their program?

    Let's say for instance using a Webbrowser are they using some sort of auto "get element by ID" or "get element by name" feature?

    Thanks
     
  2. accelerator_dd

    accelerator_dd Jr. VIP Jr. VIP

    Joined:
    May 14, 2010
    Messages:
    2,445
    Likes Received:
    1,009
    Occupation:
    SEO
    Location:
    IM Wonderland
    Take a look into RegEx. For example, you can find all fields whose names contain "name" then check if they contain f (for firstname or fname) or l (lname or lastname).

    Requires a bit creativity, but you can make it keep a database of the platforms with their footprint. So far I've gotten to "Powered By" (and name of software) to keep track of platforms, but havent put much time into it.

    Anyways Regular expressions is where you should start. From that point on, use your imagination ;)
     
  3. HatIsBlack

    HatIsBlack Regular Member

    Joined:
    Sep 17, 2010
    Messages:
    265
    Likes Received:
    187
    Location:
    Where i belong
    When it comes to elements in webbrowsers it's more likley the software loops over all for example input elements and tries to identify the objects matching the users input.
     
  4. xenon2010

    xenon2010 Regular Member

    Joined:
    Apr 27, 2010
    Messages:
    231
    Likes Received:
    48
    Occupation:
    web and desktop apps programmer
    Location:
    prison
    Home Page:
    its all by logic and the way you think how to achieve that...
    regex can do lots of AI magic.. still its very dumb compared to simplest AI brain. it totally relies on your brain and on how you collect the data from 100 websites and see what are the connections between them.. based on that your brain will start connecting stuff and will give you complex ideas, only you will be able to understand them...
    its not that hard. all you need is logic and connecting stuff... once you get the idea it won't be hard to translate it to codes...
     
  5. machines-in-motion

    machines-in-motion Junior Member

    Joined:
    Aug 11, 2010
    Messages:
    129
    Likes Received:
    46
    Occupation:
    Engineer
    Location:
    Here and there
    A proper learning algorithm (neural net or otherwise) is way too over-complicated for this. Just be clever with regular expressions and, worst case, have your software report to you when it can't figure something out so you can add the pattern.