{"_id":"5654dab7e0d82b0d00ab572d","version":{"_id":"563fc7631594380d009c1a5c","project":"5503ea178c5e913700362c70","__v":2,"createdAt":"2015-11-08T22:06:27.279Z","releaseDate":"2015-11-08T22:06:27.278Z","categories":["563fc7641594380d009c1a5d","563fc7641594380d009c1a5e","563fc7641594380d009c1a5f","5654ff257b89070d00f96386"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.0.9","version":"0.0.9"},"project":"5503ea178c5e913700362c70","__v":3,"category":{"_id":"5654ff257b89070d00f96386","version":"563fc7631594380d009c1a5c","pages":[],"__v":0,"project":"5503ea178c5e913700362c70","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-25T00:21:57.507Z","from_sync":false,"order":1,"slug":"core-concepts","title":"Core Concepts"},"user":"5503e897e508a017002013bd","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-24T21:46:31.593Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"The fourth component necessary for building a deep learning model. The loss (also known as cost) function defines how well the model performs given a ground truth. This function will be minimized during training, and should be chosen carefully for the given model and data types.\n\nThe Loss class defines how the model's outputs are compared to a ground truth. In general, you pass in `inputs` and `targets` as parameters to the object, where `inputs` is the expression of the Model that describes the end computation and `targets` is the Theano variable representing ground truth.\n\nPlease refer to the [opendeep.optimization.loss](http://opendeep.readthedocs.org/en/latest/opendeep.optimization.loss.html) package for all built-in Loss functions. Alternatively, you can wrap your own custom function in a Loss object.","excerpt":"","slug":"basics-loss","type":"basic","title":"Loss"}
The fourth component necessary for building a deep learning model. The loss (also known as cost) function defines how well the model performs given a ground truth. This function will be minimized during training, and should be chosen carefully for the given model and data types. The Loss class defines how the model's outputs are compared to a ground truth. In general, you pass in `inputs` and `targets` as parameters to the object, where `inputs` is the expression of the Model that describes the end computation and `targets` is the Theano variable representing ground truth. Please refer to the [opendeep.optimization.loss](http://opendeep.readthedocs.org/en/latest/opendeep.optimization.loss.html) package for all built-in Loss functions. Alternatively, you can wrap your own custom function in a Loss object.