This repository was archived by the owner on May 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
This repository was archived by the owner on May 21, 2022. It is now read-only.
Laundry List of Losses and Penalties #1
Copy link
Copy link
Open
Description
In our other comically long conversation (JuliaML/META#8 (comment)), we came up with the following types:
abstract Cost
abstract Loss <: Cost
abstract SupervisedLoss <: Loss
abstract UnsupervisedLoss <: Loss
abstract Penalty <: Cost
abstract DiscountedFutureRewards <: Cost
Costis a functionf(X, y, c)whereccan be anythingLossis a functionf(X, y, g(X)), socis some function of the dataSupervisedLossdoesn't needX, so its a functionf(y, g(X))UnsupervisedLossdoesn't needy, so its a functionf(X, g(X))Penaltydoesn't needXory, so its a functionf(W)whereWare some model params/weightsDiscountedFutureRewards... @tbreloff can you edit this and
IMPORTANT: everybody should edit this comment to check off Costs as they are done and also to add new Costs
This post a work-in-progress...
Supervised Losses: (implemented in Losses.jl)
- L1 error,
L1DistLoss - L2 error,
L2DistLoss - LP error,
LPDistLoss - Logit distance,
LogitDistLoss,L(y, t) = -ln(4 * exp(y - t) / (1 + exp(y - t))²) - Logistic loss,
L(y, t) = log(1+exp(-t*y)) - Hinge loss
- Multinomial logit, i.e. softmax
- Poisson loss,
- Huber loss
- Cosine distance loss
Unsupervised Losses:
- Density level detection loss?
Penalties: (implemented in ObjectiveFunctions perhaps?)
- L2 penalty
- L1 penalty
- L0 penalty? (nonconvex)
Constrants: These are actually penalties. The penalty is "infinitely bad" when the constraint is violated.
- Box constraint (
lower[i] < x[i] < upper[i]for all i) - Non-negative constraint
- Unit length constraint
- Orthogonality constraint (e.g. in PCA)... Not sure about this one.
Combinations of Penalties: I would like an easy/automatic way of combining instead of defining by hand, but this may not be feasible.
- Elastic Net
- Non-negative constraint with L1 penalty (good for sparsity)
Discounted Future Rewards:
@tbreloff -- halp!
Some sources:
Metadata
Metadata
Assignees
Labels
No labels