Learning Robot Alpha

  • 12 Replies
  • 4579 Views
*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Learning Robot Alpha
« on: January 14, 2018, 03:27:42 am »
Learning Robot Alpha



Introducing a robot that learns.
The input starts with "Learn:"
followed by the fact learned.
"The sun is hot" for example.

Ask, "What is the sun?" and the
response is "hot".  There is a
spreadsheet of what the robot
learned previously.

This is the alpha version to test
this as a proof of concept.  The
avatar is public domain, and is
a submit button.

Please visit:
http://chatbot.altervista.org/learn
My Very Enormous Monster Just Stopped Using Nine

*

ranch vermin

  • Not much time left.
  • Terminator
  • *********
  • 947
  • Its nearly time!
Re: Learning Robot Alpha
« Reply #1 on: January 14, 2018, 01:46:20 pm »
so now the sun is hot.
how do i start a fire?
use the sun.

something like that...

I swear this way works!    But theres lots of tricks and traps and your initial thinking probably wont suffice,  but there is an answer. Id be doing this,  if I didnt learn hierarchical temporal memory off Jeff Hawkins and got the pattern matching bug and did it with pattern systems instead.

I wonder if they roll together in the end,   so I definitely wont be forgetting this style of assignment as well as the pattern matching.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Learning Robot Alpha
« Reply #2 on: January 14, 2018, 04:40:48 pm »
Oh thanks, Ranch.

I rolled back the alpha several development stages into preprocessing, to setup for an implementation something like that.  Yes, my initial thinking probably would not suffice, but, there were lots of tricks and traps to avoid, to just barely make it to a rudimentary learning prototype.

Please take a look.  Do you think parsing the input can teach it to recognize a command to learn, thereby omitting the "learn:" prefix on the user input?
My Very Enormous Monster Just Stopped Using Nine

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Learning Robot Alpha
« Reply #3 on: January 14, 2018, 04:49:53 pm »
One could isolate questions by analyzing the beginning of an input. You know, question words like: who, what, where, why, how, ...

*

ranch vermin

  • Not much time left.
  • Terminator
  • *********
  • 947
  • Its nearly time!
Re: Learning Robot Alpha
« Reply #4 on: January 14, 2018, 06:04:22 pm »
8pla,  i tried it out, but im not sure how to speak to it properly.  i was just testing if it understood some basic ambiguity but i dont think it worked.

Nice work the same,   I will go back to doing one of these after I get my visual net stuff finally in a bag done. 

Always stay confident smarty pants!  I do. :)

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Learning Robot Alpha
« Reply #5 on: January 14, 2018, 08:31:51 pm »
One could isolate questions by analyzing the beginning of an input. You know, question words like: who, what, where, why, how, ...

Which do you think is better, matching the entire string

Code
<?php

$responses=array();

$regex="/\bWhat is a (\w+)\b/i";
preg_match($regex,"What is a ball?",$responses);

or matching parsed word substrings with the word positions numbered:

Code

$parsed = array(0=>"What", 1=>"is", 2=>"a", 3=>"ball");
$responses[] = $parsed[3];

print_r($responses);

?>

NOTE: Above is one source code listing split into two parts.   The first part uses regular expressions.  The second part uses an array of strings, parsed by some function into tokens (not shown).  The source code is simplified for readability purposes.

Both ways work.  Here they each insert the substring "ball" into the same $responses array.

Code
$responses array
(
    [0] => What is a ball
    [1] => ball    // inserted by regular expressions
    [2] => ball    // inserted by array element
)

I guest the question I am asking is which way do you think can handle a wider range of questions as user input?
My Very Enormous Monster Just Stopped Using Nine

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Learning Robot Alpha
« Reply #6 on: January 14, 2018, 08:52:36 pm »
Don't ask me... Although I have an opinion, I am awful at giving advices.  :-[

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Learning Robot Alpha
« Reply #7 on: January 14, 2018, 09:00:24 pm »
8pla,  i tried it out, but im not sure how to speak to it properly.  i was just testing if it understood some basic ambiguity but i dont think it worked.

Nice work the same,   I will go back to doing one of these after I get my visual net stuff finally in a bag done. 

Always stay confident smarty pants!  I do. :)

Ranch,

It is very young at this point.  So it has only learned limited grammar. 

It can learn using:   The water is wet.

Then ask it: What is the water?

Response: wet

This demonstrates that it is possible for it to learn on the Internet.

More training is needed, and I am so glad you made your suggestion.

Also, figuring out the simplest possible interface is very important,

so people won't mind training it. 

I just want to say that I really appreciate everyone's help.



My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Learning Robot Alpha
« Reply #8 on: January 14, 2018, 09:04:27 pm »
Don't ask me... Although I have an opinion, I am awful at giving advices.  :-[

The opinion you shared before was very useful to me.  It inspired me to do some source code testing.
My Very Enormous Monster Just Stopped Using Nine

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Learning Robot Alpha
« Reply #9 on: January 14, 2018, 09:47:24 pm »
Ok, I'll give it a try, but take it with a reserve.

It depends on amount of time you are willing to invest into the project. If you want it fast, you can use the regexp solution. The option with ignoring array elements would open a gray area of cheating where you could be easily caught. I'd rather report "I don't understand, please rephrase", then give an option that I can't handle more or less successfully.

But, if you want to be really noticed, there is a third option. It should be a free online English parser service somewhere out there. You can try to syntactically analyze human input sentence, pairing it with previous computer output. With drawn conclusions about input-output pair, I'd store it as a behavior pattern. On the next human input, I'd apply the learned behavior, and see what behavior could be concluded after the latest output, and again I'd store it to our artificial mind. After a while, we would have a decent behavior database, powered by comparing syntactic elements between inputs and outputs. For doing this, I'd have to find a decent ontology system where I'd store gathered knowledge. Probably I'd group it by verbs, enumerating possible subject/object/complement/whatever sets that may be used with the verb, which I'd use as a base for analyzing our input-output.

Now, this analysis could be done in a top-down manner, generalizing possible inputs-outputs towards functions where F(input) = output, but that would probably turn out to be a hard nut, so I'd probably go with neural networks, if the top-down approach fails. I think we should have some decent logic background for top-down approach, but this steep curve learning could be avoided in NN approach. Opposite to top-down approach, NN could be fed by given input, and trained to produce given output. After a month of feeding the baby with whatever data, some results should be seen. If not, we did something wrong, so we'd have to revise the whole algorithm. But be careful, it may turn out that the baby, when approaching adulthood, might be smarter than us, so then would be a fine time to think about some precaution measures like Asimov's laws, or something.

And then? Then I'd start to ask the baby real questions like: how can we improve our society, science, everyday life, and stuff like that. I wonder where would it end...

Sorry, I couldn't resist to giving the third option... Didn't I tell you about me giving awful advices? :)

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: Learning Robot Alpha
« Reply #10 on: January 14, 2018, 11:14:27 pm »
I spent some time training it. One got messed up though. The pair "World Not". Because I told it "The Earth is not safe.".

I had longed at a project exactly like this. To create a language-only AI. I was even pondering it today.

I would absolutely love to help you make this work and be useful, for free. I will start thinking of ideas now.
Emergent          https://openai.com/blog/

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Learning Robot Alpha
« Reply #11 on: January 15, 2018, 04:18:19 am »
Thanks for the time you spent training it.
I am glad one got messed up.  It was a
good reminder that "not" and "no" are
very common.

The learning has slightly improved with:   

1. The water is wet.
2. Water is wet.

And it can handled being asked:

1. What is the water?
2. What is water?

Response: wet
My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Learning Robot Alpha
« Reply #12 on: January 15, 2018, 04:30:58 am »
Ivan,

Thank you for helping discover the essentials of a robot that learns from the public.
My Very Enormous Monster Just Stopped Using Nine

 


Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
Attempting Hydraulics
by MagnusWootton (Home Made Robots)
August 19, 2024, 04:03:23 am
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

467 Guests, 0 Users

Most Online Today: 507. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles