作者clguitar (Tango !)
看板logic
標題Re: [請益] AI(人工智慧)相關內容 , fitness值的定義
時間Wed Jun 21 01:26:44 2006
※ 引述《Limpburke (because you are)》之銘言:
: (*A(-(*AA)(sqrt A))) fitness:1
: (/A(/(/AA)(/AA))) fitness:3
: (+A(*(sqrt A)A)) fitness:0
: PS.sqrt為開根號的意思, ex:A = (sqrt(*AA))
: Since the fitness measure is a function of the data points we want to explain,
: we define fitness as the number of output of the program that come within
: 20 per cent of the correct output values. We use this definition to create the
: fitness measure of this initial population, to build crossover and mutation
: operators that can produce further generations of programs, and to determine
: termination conditions.
: 請問,fitness的定義為何?
: 我看了定義後,似懂非懂,但無法理解為何上面三個前序表示式的fitness值分別為1,3,0
: 請各位先進高手專家,不吝賜教,謝謝,感激不盡!
這個看起來像是基因演算法 (GA)
你可以去網路上找有關Genetic Algorithm的書,
亦或到台大生工系童慶斌老師的站上下載,
ftp://140.112.76.49
匿名登入,去找啟發式演算法的資料夾,
適合度是我們使用者所定義的,
端視題目的需要而定,
比如說今天我要
Obj: min Z = x1 + x2
Constraint:
x1>0;
x2>0;
那我就會想用倒數來當fitness~
以上例子純屬解說,
那種題目是不需要用GA的~:p
Do you get it?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.233.100