Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 88302 | Differences between
and this patch

Collapse All | Expand All

(-)bow-20020213/bow/libbow.h (-1 / +1 lines)
Lines 1343-1349 Link Here
1343
#include <bow/kl.h>
1343
#include <bow/kl.h>
1344
#include <bow/em.h>
1344
#include <bow/em.h>
1345
#include <bow/knn.h>
1345
#include <bow/knn.h>
1346
struct argp_child;		/* forward declare this type */
1346
#include "argp.h"
1347
1347
1348
/* Associate method M with the string NAME, so the method structure
1348
/* Associate method M with the string NAME, so the method structure
1349
   can be retrieved later with BOW_METHOD_AT_NAME().  Set the group
1349
   can be retrieved later with BOW_METHOD_AT_NAME().  Set the group
(-)bow-20020213/dv.c (-2 / +2 lines)
Lines 52-58 Link Here
52
{
52
{
53
  int dv_index;			/* The "document vector" index at
53
  int dv_index;			/* The "document vector" index at
54
				   which we are looking for. */
54
				   which we are looking for. */
55
  static inline void grow_if_necessary ()
55
  inline void grow_if_necessary ()
56
    {
56
    {
57
      if (error_on_creation)
57
      if (error_on_creation)
58
	bow_error ("Shouldn't be creating new entry for a weight.");
58
	bow_error ("Shouldn't be creating new entry for a weight.");
Lines 67-73 Link Here
67
				       + sizeof (bow_de) * (*dv)->size));
67
				       + sizeof (bow_de) * (*dv)->size));
68
	}
68
	}
69
    }
69
    }
70
  static inline void initialize_dv_index (int dvi)
70
  inline void initialize_dv_index (int dvi)
71
    {
71
    {
72
      (*dv)->entry[dvi].di = di;
72
      (*dv)->entry[dvi].di = di;
73
      (*dv)->entry[dvi].count = 0;
73
      (*dv)->entry[dvi].count = 0;
(-)bow-20020213/multiclass.c (-1 / +5 lines)
Lines 1050-1056 Link Here
1050
void
1050
void
1051
bow_sort_scores (bow_score *scores, int count)
1051
bow_sort_scores (bow_score *scores, int count)
1052
{
1052
{
1053
  static int score_compare (const void *x, const void *y)
1053
  int score_compare (const void *x, const void *y)
1054
    {
1054
    {
1055
      if (((bow_score *)x)->weight > ((bow_score *)y)->weight)
1055
      if (((bow_score *)x)->weight > ((bow_score *)y)->weight)
1056
	return -1;
1056
	return -1;
Lines 1256-1261 Link Here
1256
	}
1256
	}
1257
      return si;
1257
      return si;
1258
    next_si:
1258
    next_si:
1259
      continue;
1259
    }
1260
    }
1260
  return -1;
1261
  return -1;
1261
}
1262
}
Lines 1340-1345 Link Here
1340
	  max_ci = ci;
1341
	  max_ci = ci;
1341
	}
1342
	}
1342
    next_class1:
1343
    next_class1:
1344
        continue;
1343
    }
1345
    }
1344
1346
1345
  if (local_exclude_cis_size + 1 < exclude_cis_capacity/2
1347
  if (local_exclude_cis_size + 1 < exclude_cis_capacity/2
Lines 1421-1428 Link Here
1421
	      max_ci2 = ci2;
1423
	      max_ci2 = ci2;
1422
	    }
1424
	    }
1423
	next_class22:
1425
	next_class22:
1426
      	   continue;
1424
	}
1427
	}
1425
    next_class2:
1428
    next_class2:
1429
      continue;
1426
    }
1430
    }
1427
  assert (max_si >= 0);
1431
  assert (max_si >= 0);
1428
1432
(-)bow-20020213/svm_base.c (-1 lines)
Lines 261-267 Link Here
261
    case 4:
261
    case 4:
262
      kernel = svm_kernel_fisher;
262
      kernel = svm_kernel_fisher;
263
      break;
263
      break;
264
    default:
265
    }
264
    }
266
    break;
265
    break;
267
  case AL_TEST_IN_TRAIN_ARG:
266
  case AL_TEST_IN_TRAIN_ARG:

Return to bug 88302