aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/static/builder.h
blob: f179d778615c36eeb1c32ae10fd6d31ea113a3e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "static.h"

#include <library/cpp/svnversion/svnversion.h>

#include <util/datetime/base.h>
#include <util/generic/string.h> 
#include <util/generic/vector.h>
#include <util/string/builder.h>

namespace NCodecs {
    struct TCodecBuildInfo {
        // optimal values from SEARCH-1655
        TString CodecName = "solar-8k-a:zstd08d-1"; 
        float SampleSizeMultiplier = 1;

        // debug info:
        time_t Timestamp = TInstant::Now().TimeT();
        TString RevisionInfo = (TStringBuilder() << "r" << ToString(GetProgramSvnRevision())); 
        TString TrainingSetComment; // a human comment on the training data 
        TString TrainingSetResId;   // sandbox resid of the training set
    };

    TStaticCodecInfo BuildStaticCodec(const TVector<TString>& trainingData, const TCodecBuildInfo&); 

    TString GetStandardFileName(const TStaticCodecInfo&); 

}