Agile Artificial Intelligence

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Agile Artificial Intelligence

Stéphane Ducasse
We are happy to announce that the book of A. Bergel is out


Agile Artificial Intelligence in Pharo


Implementing Neural Networks, Genetic Algorithms, and Neuroevolution


Cover classical algorithms commonly used as artificial intelligence techniques and program agile artificial intelligence applications using Pharo in this book. It takes a practical approach by presenting the implementation details to illustrate the numerous concepts it explain…



As a book author I want to congratulate alex for this effort. 

S.

--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence

eftomi
Thanks, Stef, the book is excellent!

Best wishes,
Tomaz

Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence

Stéphane Ducasse
write it on amazon :)

On 2 Jul 2020, at 09:56, Tomaž Turk <[hidden email]> wrote:

Thanks, Stef, the book is excellent!

Best wishes,
Tomaz

--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence

eftomi
In reply to this post by eftomi
Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence

Pharo Smalltalk Users mailing list
Thanks Tomaž for your nice words.
Comments on amazon are really important.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence first trained Perceptron

bentai
In reply to this post by Stéphane Ducasse
I noticed that if I trained the OR gate with 31 iterations, the first test
would fail.

If I train with 32 iterations, then the test for #(0 0) would pass.

What is the explanation for this "tipping point"?

The other tests pass, even if timeRepeat := 1.

I just decided to experiment a bit.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence

bentai
In reply to this post by Pharo Smalltalk Users mailing list
I think I found another bug in the book. I am using the Safari version, and the code in the text doesn't match the screenshot. For example, the text says:
somePoints := OrderedCollection new.
500 timesRepeat: [    somePoints add: {(50 atRandom - 25) . (50 atRandom - 25)}].
f := [ :x | (-2 * x) - 3 ].
"We use the Roassal Grapher engine to plot our points"
g := RTGrapher new.
d := RTData new.
d dotShape    color: [ :p | (p second > (f value: p first)) ifTrue: [ Color red trans ]                    ifFalse: [ Color blue trans ] ].
d points: somePoints.
d x: #first.
d y: #second.
g add: d.
g
"" The rendered code in the Safari version gets an error, whereas the screenshot version works:
f := [  :x | (-2 * x) - 3 ].

somePoints := OrderedCollection new.
500 timesRepeat: [ somePoints add: (( 50 atRandom - 25 ) @ ( 50 atRandom - 25 )) ].

g := RTGrapher new.
d := RTData new.
d dotShape color: [ :p | (p y > (f value: p x)) ifTrue: [ Color red trans ] ifFalse: [ Color blue trans ] ].
d points: somePoints.
d x: #x.
d y: #y.
g add: d.
g
-----------------------------------------------------------------------------------

This may be part of the cause of my bug report on Git, e.g. there is a mismatch between the eBook version, the printed version and the Safari/OReilly version.

It is Pharo 7.0.4, but I don't know if that matters in this case.

I apologize for not following the procedure of cloning the github repository and creating bug request from there with pull requests, but I am still working out the configuration of Iceberg.

Cheers,
Tom Sturgeon


Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence first trained Perceptron

Pharo Smalltalk Users mailing list
In reply to this post by bentai
Hello,

Sorry to reply late. I just saw this email.

Each training modify the weights and bias of the perceptron by a small quantity. It is just that, in this very particular case, from 31 or 32 is the drop that makes all things change...

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On 21-08-2020, at 01:31, bentai <[hidden email]> wrote:

I noticed that if I trained the OR gate with 31 iterations, the first test
would fail.

If I train with 32 iterations, then the test for #(0 0) would pass.

What is the explanation for this "tipping point"?

The other tests pass, even if timeRepeat := 1.

I just decided to experiment a bit.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


Reply | Threaded
Open this post in threaded view
|

Re: Agile Artificial Intelligence

Pharo Smalltalk Users mailing list
In reply to this post by bentai
Very well spotted!

Thank you very much! 

I will fix in the second edition. Even if all the code contained in the book is automatically tested, in this case, this was not enough. 

Thank you!

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On 21-08-2020, at 02:07, bentai <[hidden email]> wrote:

I think I found another bug in the book. I am using the Safari version, and the code in the text doesn't match the screenshot. For example, the text says:
somePoints := OrderedCollection new.
500 timesRepeat: [    somePoints add: {(50 atRandom - 25) . (50 atRandom - 25)}].
f := [ :x | (-2 * x) - 3 ].
"We use the Roassal Grapher engine to plot our points"
g := RTGrapher new.
d := RTData new.
d dotShape    color: [ :p | (p second > (f value: p first)) ifTrue: [ Color red trans ]                    ifFalse: [ Color blue trans ] ].
d points: somePoints.
d x: #first.
d y: #second.
g add: d.
g
"" The rendered code in the Safari version gets an error, whereas the screenshot version works:
f := [  :x | (-2 * x) - 3 ].

somePoints := OrderedCollection new.
500 timesRepeat: [ somePoints add: (( 50 atRandom - 25 ) @ ( 50 atRandom - 25 )) ].

g := RTGrapher new.
d := RTData new.
d dotShape color: [ :p | (p y > (f value: p x)) ifTrue: [ Color red trans ] ifFalse: [ Color blue trans ] ].
d points: somePoints.
d x: #x.
d y: #y.
g add: d.
g
-----------------------------------------------------------------------------------

This may be part of the cause of my bug report on Git, e.g. there is a mismatch between the eBook version, the printed version and the Safari/OReilly version.

It is Pharo 7.0.4, but I don't know if that matters in this case.

I apologize for not following the procedure of cloning the github repository and creating bug request from there with pull requests, but I am still working out the configuration of Iceberg.

Cheers,
Tom Sturgeon


Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.