* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Artificial Intelligence help  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

Offline alexgt

  • Just your friendly neighborhood Ninja Stach Fancy Iron Man
  • Super User
  • Join Date: Dec 2014
  • Location: Behind you
  • Posts: 2611
  • Post Rating Ratio: +6/-1
  • Something should go here...
    • /u/alexgt9123
  • Gender: Male
Artificial Intelligence help
« on: April 01, 2015, 09:27:58 pm »
This topic is mainly for my project JarvAXE 5.0 because I need help with my AI response system but this topic is open to anything to do with interactions that have some intelligence behind them like a chess CPU.

(I quote myself)
Quote
The way he responds is when I press a key it records that key code in a buffer then when I press enter it adds those codes up into a buffer until it hits a space then it goes into the next spot and so on, after that    I use a for loop checking for values in the buffer that match with 130 which is "hello" and all the other responses. My only option is when I  finish a word I take that and compare it to the next word and it's meaning and then store those values into an appvar but the appvar would get very big very fast and I would have to have it in RAM because I will have to write to it :(. I could probably put the values into free ram but I will still have to open up alot of ram when I unarchive the appvar.
How could he learn?


  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re : Artificial Intelligence help
« Reply #1 on: April 02, 2015, 06:36:37 am »
Hmm I am curious if @Travis might be able to help on this... He made a similar program for the TI-89 in 2012.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Travis

  • Full User
  • Safe-haven access
  • Join Date: Jan 2015
  • Location:
  • Posts: 126
  • Post Rating Ratio: +3/-0
    • 8361
  • Gender: Male
Re : Artificial Intelligence help
« Reply #2 on: April 02, 2015, 11:44:34 pm »
The TI-89 program just output phrases based on a RNG seed, and all the vocabulary was static—there was no learning. Nikkybot is a fully interactive bot with some weak AI, but since it runs on a PC, storage space for learning isn't much of a concern.

I haven't had much experience writing things like this on a memory-limited platform. You may not be able to do much except simply limit the amount of learning it does. Perhaps you could keep track of how often each piece of information is used, and when memory gets low, just have it forget the stuff that was used the least.

You might be able to do clever tricks like compression, but this tends to add significant complexity and reduce performance. I've written programs on the TI-89 and HP 50g for myself that needed to track more data than can fit in RAM at once, and I did this by breaking the dataset into groups of variables small enough to individually fit in RAM and writing an abstraction layer for reading/writing it that figures out what's currently in RAM, where to find the requested data, and handle shuffling stuff in and out of flash as needed. They worked but weren't terribly fun to write and debug, and the extra overhead makes everything really slow.
« Last Edit: April 02, 2015, 11:46:43 pm by Travis »
  • Calculators owned: TI-81, TI-82, TI-85, TI-86, TI-89, TI-89 Titanium, 2 × HP 50g
ticalc.org staff member—http://www.ticalc.org/

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Artificial Intelligence help
« Reply #3 on: April 03, 2015, 02:11:36 am »
Was NikkyBot for the 89 written in BASIC, by the way?
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Travis

  • Full User
  • Safe-haven access
  • Join Date: Jan 2015
  • Location:
  • Posts: 126
  • Post Rating Ratio: +3/-0
    • 8361
  • Gender: Male
Re: Artificial Intelligence help
« Reply #4 on: April 03, 2015, 03:43:53 am »
I started NikkySim in TI-BASIC, but it took a minute to generate every sentence, so I rewrote the program in C for release. I believe I included a copy of the BASIC prototype in the ZIP just for fun, though.
  • Calculators owned: TI-81, TI-82, TI-85, TI-86, TI-89, TI-89 Titanium, 2 × HP 50g
ticalc.org staff member—http://www.ticalc.org/

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games