source: orange/source/orange/rconversions.hpp @ 9532:2c6a8bb6ec89

Revision 9532:2c6a8bb6ec89, 1.4 KB checked in by janezd <janez.demsar@…>, 2 years ago (diff)

Conversion to numpy now supports multiple classes (Ticket #1012)

Line 
1/*
2    This file is part of Orange.
3   
4    Copyright 1996-2010 Faculty of Computer and Information Science, University of Ljubljana
5    Contact: janez.demsar@fri.uni-lj.si
6
7    Orange is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11
12    Orange is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with Orange.  If not, see <http://www.gnu.org/licenses/>.
19*/
20
21
22#ifndef __RCONVERSIONS_HPP
23#define __RCONVERSIONS_HPP
24
25
26#include "root.hpp"
27
28WRAPPER(ExampleGenerator)
29void exampleGenerator2r(PExampleGenerator egen, const int &weightID, const char *contents, const int &multiTreatment,
30                          double *&X, double *&y, double *&w, int &rows, int &columns);
31
32void parseMatrixContents(PExampleGenerator egen, const int &weightID, const char *contents, const int &multiTreatment,
33                         bool &hasClass, bool &classVector, bool &multiClassVector, bool &weightVector, bool &classIsDiscrete, int &columns,
34                         vector<bool> &include);
35
36#endif
Note: See TracBrowser for help on using the repository browser.