libpostal-sys 0.1.1

Low-level wrappers for libpostal address normalization (with locks to support thread-safe initialization)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef REGULARIZATION_H
#define REGULARIZATION_H

#include <stdlib.h>

typedef enum {
    REGULARIZATION_NONE,
    REGULARIZATION_L1,
    REGULARIZATION_L2
} regularization_type_t;

void regularize_l2(double *theta, size_t n, double reg_update);
void regularize_l1(double *theta, size_t n, double reg_update);

#endif