- Teacher
- agents
- config
- currentEpsilon
- currentLessonLength
- lessonsTaught
- name
- onLearningLessonEnded
- onLessonEnded
- onTeachingEnded
- state
- affectStudent
- getData
- removeStudent
- reset
- resetLesson
- start
- startTeaching
- stop
- stopTeaching
- teach
- updateParameters
+ new Teacher(config?
: TeachingConfig, name?
: string): Teacher
Defined in reimprove/teacher.ts:60
Parameters:
Name | Type |
---|---|
config? |
TeachingConfig |
name? |
string |
Returns: Teacher
● agents: Set<DQAgent>
Defined in reimprove/teacher.ts:51
● config: TeachingConfig
Defined in reimprove/teacher.ts:48
● currentEpsilon: number
Defined in reimprove/teacher.ts:60
● currentLessonLength: number
Defined in reimprove/teacher.ts:53
● lessonsTaught: number
Defined in reimprove/teacher.ts:54
● name: string
Defined in reimprove/teacher.ts:47
● onLearningLessonEnded: function
Defined in reimprove/teacher.ts:56
▸ (teacher
: string): void
Parameters:
Name | Type |
---|---|
teacher |
string |
● onLessonEnded: function
Defined in reimprove/teacher.ts:57
▸ (teacher
: string, lessonNumber
: number): void
Parameters:
Name | Type |
---|---|
teacher |
string |
lessonNumber |
number |
● onTeachingEnded: function
Defined in reimprove/teacher.ts:58
▸ (teacher
: string): void
Parameters:
Name | Type |
---|---|
teacher |
string |
● state: TeachingState
Defined in reimprove/teacher.ts:49
● get Name(): string
Defined in reimprove/teacher.ts:210
Returns: string
● set Name(name
: string): void
Defined in reimprove/teacher.ts:206
Parameters:
Name | Type |
---|---|
name |
string |
Returns: void
● set OnLearningLessonEnded(callback
: function): void
Defined in reimprove/teacher.ts:194
Parameters:
■ callback
: function
▸ (teacher
: string): void
Parameters:
Name | Type |
---|---|
teacher |
string |
Returns: void
● set OnLessonEnded(callback
: function): void
Defined in reimprove/teacher.ts:198
Parameters:
■ callback
: function
▸ (teacher
: string, lessonNumber
: number): void
Parameters:
Name | Type |
---|---|
teacher |
string |
lessonNumber |
number |
Returns: void
● set OnTeachingEnded(callback
: function): void
Defined in reimprove/teacher.ts:202
Parameters:
■ callback
: function
▸ (teacher
: string): void
Parameters:
Name | Type |
---|---|
teacher |
string |
Returns: void
● get State(): TeachingState
Defined in reimprove/teacher.ts:214
Returns: TeachingState
▸ affectStudent(agent
: DQAgent): void
Defined in reimprove/teacher.ts:76
Parameters:
Name | Type |
---|---|
agent |
DQAgent |
Returns: void
▸ getData(): TeacherTrackingInformation
Defined in reimprove/teacher.ts:165
Returns: TeacherTrackingInformation
▸ removeStudent(agent
: DQAgent): boolean
Defined in reimprove/teacher.ts:80
Parameters:
Name | Type |
---|---|
agent |
DQAgent |
Returns: boolean
▸ reset(): void
Defined in reimprove/teacher.ts:184
Returns: void
▸ resetLesson(): void
Defined in reimprove/teacher.ts:179
Returns: void
▸ start(): void
Defined in reimprove/teacher.ts:84
Returns: void
▸ startTeaching(): void
Defined in reimprove/teacher.ts:151
Returns: void
▸ stop(): void
Defined in reimprove/teacher.ts:190
Returns: void
▸ stopTeaching(): void
Defined in reimprove/teacher.ts:147
Returns: void
▸ teach(inputs
: number[]): Promise<Map<string, number>>
Defined in reimprove/teacher.ts:90
Parameters:
Name | Type |
---|---|
inputs |
number[] |
Returns: Promise<Map<string, number>>
▸ updateParameters(): void
Defined in reimprove/teacher.ts:156
Returns: void