-
Notifications
You must be signed in to change notification settings - Fork 6
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
pytorch tensor truth value #92
Conversation
ADD_LIBRARY (truthvalue | ||
CountTruthValue.cc | ||
EvidenceCountTruthValue.cc | ||
FuzzyTruthValue.cc | ||
IndefiniteTruthValue.cc | ||
ProbabilisticTruthValue.cc | ||
SimpleTruthValue.cc | ||
TruthValue.cc | ||
TruthValue.cc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace issue here
@@ -32,6 +32,7 @@ INDEFINITE_TRUTH_VALUE <- TRUTH_VALUE | |||
FUZZY_TRUTH_VALUE <- TRUTH_VALUE | |||
PROBABILISTIC_TRUTH_VALUE <- TRUTH_VALUE | |||
EVIDENCE_COUNT_TRUTH_VALUE <- TRUTH_VALUE | |||
TTRUTH_VALUE <- TRUTH_VALUE "TTruthValue" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest name it TORCH_TRUTH_VALUE
as TTRUTH_VALUE
is unclear and ambiguous - usually T
at the beginning sounds as Type
. And rename TTruthValue
to TorchTruthValue
as well for clarity.
Co-Authored-By: noskill <[email protected]>
Co-Authored-By: noskill <[email protected]>
from opencog.atomspace import TensorTruthValue | ||
from torch import tensor | ||
import torch | ||
TTruthValue = TensorTruthValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you not renamed classes in test? As test can be used as example of code it can be misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see misleading class names in this file. Which one looks misleading to you?
Wrapper truth value class for python object.
TTruthValue c++ class wraps pytorch tensor object to query for mean and confidence, so that it can be accessed from both c++ and python.
see issue singnet/opencog#70