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

Evaluation #26

Closed
wants to merge 2 commits into from
Closed

Evaluation #26

wants to merge 2 commits into from

Conversation

Jeanselme
Copy link
Contributor

Compute the loss on a given set of points

Compute the loss on a given set of points
dsm/dsm_api.py Outdated
@@ -118,6 +118,18 @@ def fit(self, x, t, e, vsize=0.15,
self.fitted = True

return self

def eval(self, x, t, e):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this ... can we instead call this function _log_likelihood? or _negative_log_likelihood or something like that ? preferably with an underscore at the start to show that it isn't typically supposed to be used directly ?

dsm/dsm_api.py Outdated
@@ -31,7 +31,7 @@
from dsm.dsm_torch import DeepRecurrentSurvivalMachinesTorch
from dsm.losses import predict_cdf
import dsm.losses as losses
from dsm.utilities import train_dsm, _get_padded_features, _get_padded_targets
from dsm.utilities import train_dsm, _get_padded_features, _get_padded_targets, _reshape_tensor_with_nans
Copy link
Collaborator

Choose a reason for hiding this comment

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

break into multiple lines this line is too long

@chiragnagpal
Copy link
Collaborator

chiragnagpal commented Jan 3, 2021

Closing this since this PR since it was outdated by https://github.com/autonlab/DeepSurvivalMachines/pull/29

@Jeanselme Jeanselme deleted the patch-6 branch February 9, 2021 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants