Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GlobalEval #28

Merged
merged 28 commits into from
Dec 26, 2023
Merged

GlobalEval #28

merged 28 commits into from
Dec 26, 2023

Conversation

bowen-xu
Copy link
Collaborator

@bowen-xu bowen-xu commented Sep 21, 2023

@bowen-xu bowen-xu added enhancement New feature or request do-not-merge labels Sep 21, 2023
@bowen-xu bowen-xu linked an issue Sep 21, 2023 that may be closed by this pull request
@bowen-xu bowen-xu deleted the branch dev October 17, 2023 17:41
@bowen-xu bowen-xu closed this Oct 17, 2023
@bowen-xu bowen-xu reopened this Oct 17, 2023
@bowen-xu bowen-xu requested review from maxeeem and removed request for MoonWalker1997 November 9, 2023 00:34
@bowen-xu bowen-xu self-assigned this Nov 9, 2023
@bowen-xu bowen-xu marked this pull request as ready for review November 9, 2023 00:35
@bowen-xu
Copy link
Collaborator Author

bowen-xu commented Nov 9, 2023

@maxeeem could you please help to review the code when you get a chance?

@bowen-xu bowen-xu changed the title [WIP] GlobalEval GlobalEval Nov 9, 2023
@ccrock4t ccrock4t self-requested a review November 30, 2023 18:29
@maxeeem
Copy link
Collaborator

maxeeem commented Dec 6, 2023

@bowen-xu there seems to be a conflict with the dev branch which will need to be resolved before merging

task, concept, self.memory)

# update well-being
self.global_eval.update_wellbeing(task_executed.truth.e)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently inside the mental_operation function. Is it just the name or is there another function elsewhere for other types of operations?

The reason I ask is if well-being is meant to represent the 'body' functioning as expected, then it seems more related to operations like ^move or ^look etc rather than mental operations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh u r right. Since there is no "body" in the current implementation, Pei told me that we can tentatively update well-being when an operation is succesfully executed. So this should also be called when any operations (like ^move and ^look) are executed.

''' Here, belief is not None, and it is the best solution for the task
Thus, do global evaluation to update satisfaction of the system.
'''
self.global_eval.update_satisfaction(task.achieving_level(belief.truth), task.budget.priority)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add this to questions as well in addition to goals. But perhaps later, not in this initial PR.

We tentatively exploit the truth of a revised task to indicate alertness
"""
if judgement_revised is not None:
self.global_eval.update_alertness(judgement_revised.truth.c - task.truth.c)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an absolute value to avoid negative numbers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

judgement_revised.truth.c - task.truth.c could be negative

Copy link
Collaborator

@ccrock4t ccrock4t Dec 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be OK, since the Revision rule always increases confidence, the Task's Judgment would always be lower confidence than the revised Judgment

pynars/NARS/Control/Reasoner.py Show resolved Hide resolved
pynars/NARS/Control/Reasoner.py Show resolved Hide resolved
pynars/NARS/DataStructures/_py/Memory.py Show resolved Hide resolved
pynars/NARS/GlobalEval.py Show resolved Hide resolved
@bowen-xu
Copy link
Collaborator Author

@bowen-xu there seems to be a conflict with the dev branch which will need to be resolved before merging

@maxeeem Fixed.

@maxeeem maxeeem merged commit ce41403 into dev Dec 26, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Overall evaluation indicators for the system's internal state
3 participants