This file is indexed.

/usr/include/shogun/multiclass/ecoc/ECOCStrategy.h is in libshogun-dev 3.2.0-7.3build4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Written (W) 2012 Chiyuan Zhang
 * Copyright (C) 2012 Chiyuan Zhang
 */

#ifndef ECOCSTRATEGY_H__
#define ECOCSTRATEGY_H__

#include <shogun/multiclass/MulticlassStrategy.h>
#include <shogun/multiclass/ecoc/ECOCEncoder.h>
#include <shogun/multiclass/ecoc/ECOCDecoder.h>

namespace shogun
{

/** Multiclass Strategy that uses ECOC coding */
class CECOCStrategy: public CMulticlassStrategy
{
public:
    /** default constructor, do not call, only to make serializer happy */
    CECOCStrategy();

    /** constructor */
    CECOCStrategy(CECOCEncoder *encoder, CECOCDecoder *decoder);

    /** destructor */
    virtual ~CECOCStrategy();

    /** get name */
    virtual const char* get_name() const
    {
        return "ECOCStrategy";
    }

    /** start training */
    virtual void train_start(CMulticlassLabels *orig_labels, CBinaryLabels *train_labels);

    /** has more training phase */
    virtual bool train_has_more();

    /** prepare for the next training phase.
     * @return The subset that should be applied. Return NULL when no subset is needed.
     */
    virtual SGVector<int32_t> train_prepare_next();

    /** decide the final label.
     * @param outputs a vector of output from each machine (in that order)
     */
    virtual int32_t decide_label(SGVector<float64_t> outputs);

    /** get number of machines used in this strategy.
     */
    virtual int32_t get_num_machines();

protected:
    /** ECOC encoder */
    CECOCEncoder *m_encoder;
    /** ECOC decoder */
    CECOCDecoder *m_decoder;

    /** ECOC codebook */
    SGMatrix<int32_t> m_codebook;

private:
	/** init parameters */
    void init();
};


}

#endif /* end of include guard: ECOCSTRATEGY_H__ */