ModErn Text Analysis
META Enumerates Textual Applications
Classes | Namespaces | Functions
loss_function_factory.h File Reference
#include <functional>
#include <memory>
#include <unordered_map>
#include "classify/loss/loss_function.h"
#include "util/factory.h"
#include "util/shim.h"

Go to the source code of this file.

Classes

class  meta::classify::loss::loss_function_factory
 Factory that is responsible for creating loss functions from strings. More...
 

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
 
 meta::classify
 Algorithms for feature selection, KNN search, and confusion matrices.
 
 meta::classify::loss
 Loss functions for sgd.
 

Functions

std::unique_ptr< loss_function > meta::classify::loss::make_loss_function (const std::string &identifier)
 Convenience method for making a loss function using the factory. More...
 
template<class Loss >
std::unique_ptr< loss_function > meta::classify::loss::make_loss_function ()
 Factory method for creating a loss function. More...
 
template<class Loss >
void meta::classify::loss::register_loss_function ()
 Registration method for loss functions. More...
 

Detailed Description

Author
Chase Geigle

All files in META are released under the MIT license. For more details, consult the file LICENSE in the root of the project.