Algorithm-TrunkClassifier
view release on metacpan or search on metacpan
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
104810491050105110521053105410551056105710581059106010611062106310641065106610671068ck_eval|||
ck_exec|||
ck_exists|||
ck_exit|||
ck_ftst|||
ck_fun|||
ck_glob|||
ck_grep|||
ck_index|||
ck_join|||
ck_lengthconst|||
ck_lfun|||
ck_listiob|||
ck_match|||
ck_method|||
ck_null|||
ck_open|||
ck_readline|||
ck_repeat|||
ck_require|||
ck_retarget|||
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
158815891590159115921593159415951596159715981599160016011602160316041605160616071608mess_nocontext|||vn
mess||5.006000|v
method_common|||
mfree||5.007002|n
mg_clear|||
mg_copy|||
mg_dup|||
mg_find|||
mg_free|||
mg_get|||
mg_length||5.005000|
mg_localize|||
mg_magical|||
mg_set|||
mg_size||5.005000|
mini_mktime||5.007002|
missingterm|||
mode_from_discipline|||
modkids|||
mod|||
more_bodies|||
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
188618871888188918901891189218931894189518961897189818991900190119021903190419051906reg_named_buff_exists||5.009005|
reg_named_buff_fetch||5.009005|
reg_named_buff_firstkey||5.009005|
reg_named_buff_iter|||
reg_named_buff_nextkey||5.009005|
reg_named_buff_scalar||5.009005|
reg_named_buff|||
reg_namedseq|||
reg_node|||
reg_numbered_buff_fetch|||
reg_numbered_buff_length|||
reg_numbered_buff_store|||
reg_qr_package|||
reg_recode|||
reg_scan_name|||
reg_skipcomment|||
reg_stringify||5.009005|
reg_temp_copy|||
reganode|||
regatom|||
regbranch|||
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
228822892290229122922293229422952296229722982299230023012302230323042305230623072308unshare_hek|||
unsharepvn||5.004000|
unwind_handler_stack|||
update_debugger_info|||
upg_version||5.009005|
usage|||
utf16_to_utf8_reversed||5.006001|
utf16_to_utf8||5.006001|
utf8_distance||5.006000|
utf8_hop||5.006000|
utf8_length||5.007001|
utf8_mg_pos_cache_update|||
utf8_to_bytes||5.006001|
utf8_to_uvchr||5.007001|
utf8_to_uvuni||5.007001|
utf8n_to_uvchr|||
utf8n_to_uvuni||5.007001|
utilize|||
uvchr_to_utf8_flags||5.007003|
uvchr_to_utf8|||
uvuni_to_utf8_flags||5.007003|
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
23482349235023512352235323542355235623572358235923602361236223632364236523662367yyerror|||
yylex|||
yyparse|||
yywarn|||
);
if
(
exists
$opt
{
'list-unsupported'
}) {
my
$f
;
for
$f
(
sort
{
lc
$a
cmp
lc
$b
}
keys
%API
) {
next
unless
$API
{
$f
}{todo};
"$f "
,
'.'
x(40-
length
(
$f
)),
" "
, format_version(
$API
{
$f
}{todo}),
"\n"
;
}
exit
0;
}
# Scan for possible replacement candidates
my
(
%replace
,
%need
,
%hints
,
%warnings
,
%depends
);
my
$replace
= 0;
my
(
$hint
,
$define
,
$function
);
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
37153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737#ifndef ERRSV
# define ERRSV get_sv("@",FALSE)
#endif
#ifndef newSVpvn
# define newSVpvn(data,len) ((data) \
? ((len) ? newSVpv((data), (len)) : newSVpv(
""
, 0)) \
: newSV(0))
#endif
/* Hint: gv_stashpvn
* This function
's backport doesn'
t support the
length
parameter, but
* rather ignores it. Portability can only be ensured
if
the
length
* parameter is used
for
speed reasons, but the
length
can always be
* correctly computed from the string argument.
*/
#ifndef gv_stashpvn
# define gv_stashpvn(str,len,create) gv_stashpv(str,create)
#endif
/* Replace: 1 */
#ifndef get_cv
# define get_cv perl_get_cv
#endif
Algorithm/TrunkClassifier/ppport.h view on Meta::CPAN
632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376#endif
#define my_strlcat DPPP_(my_my_strlcat)
#define Perl_my_strlcat DPPP_(my_my_strlcat)
#if defined(NEED_my_strlcat) || defined(NEED_my_strlcat_GLOBAL)
Size_t
DPPP_(my_my_strlcat)(char
*dst
, const char
*src
, Size_t size)
{
Size_t used,
length
, copy;
used = strlen(dst);
length
= strlen(src);
if
(size > 0 && used < size - 1) {
copy = (
length
>= size - used) ? size - used - 1 :
length
;
memcpy(dst + used, src, copy);
dst[used + copy] =
'\0'
;
}
return
used +
length
;
}
#endif
#endif
#if !defined(my_strlcpy)
#if defined(NEED_my_strlcpy)
static Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size);
static
#else
extern Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size);
#endif
#define my_strlcpy DPPP_(my_my_strlcpy)
#define Perl_my_strlcpy DPPP_(my_my_strlcpy)
#if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL)
Size_t
DPPP_(my_my_strlcpy)(char
*dst
, const char
*src
, Size_t size)
{
Size_t
length
, copy;
length
= strlen(src);
if
(size > 0) {
copy = (
length
>= size) ? size - 1 :
length
;
memcpy(dst, src, copy);
dst[copy] =
'\0'
;
}
return
length
;
}
#endif
#endif
#endif /* _P_P_PORTABILITY_H_ */
/* End of File ppport.h */
lib/Algorithm/TrunkClassifier/DataWrapper.pm view on Meta::CPAN
230231232233234235236237238239240241242243244245246247248249250
foreach
my
$class
(
@cols
){
$class
=
uc
(
$class
);
}
$membership
{
$classVarName
} = \
@cols
;
}
}
if
(!
$classes
{
$className
} || !
$membership
{
$className
}){
die
"Error: Missing meta data for classification variable '$className' in $datasetType\n"
;
}
if
(
scalar
(@{
$membership
{
$className
}}) !=
$totNumSamples
){
die
"Error: CLASSMEM vector for '$className' and sample vector have different lengths in $datasetType\n"
;
}
foreach
my
$class
(@{
$membership
{
$className
}}){
if
(
$class
ne
$NULL_CLASS
&& !
$classes
{
$className
}{
$class
}){
die
"Error: Invalid class label in '$className' CLASSMEM vector in $datasetType\n"
;
}
}
my
@classVector
= @{
$membership
{
$className
}};
my
@classBuffer
=
sort
(
keys
(%{
$classes
{
$className
}}));
my
$classOne
=
$classBuffer
[0];
my
$classTwo
=
$classBuffer
[1];
pod/TrunkClassifier.pod view on Meta::CPAN
384385386387388389390391392393394395396397398399400401402403Indicates that one of the I<classLabel>
values
for
a
#CLASSVAR meta data row is equal
to the null class symbol
#NA. The I<classLabel> values are the class labels for the
classification variable and cannot be equal to
#NA, because this symbol is reserved as
a null class symbol.
=item Missing meta data for classification variable I<classVar> in input/testset data file
Indicates that the classification variable name given to the -c option is missing in
the meta data of the input or testset data file.
=item CLASSMEM vector for I<classVar> and sample vector have different lengths in input/testset data file
Indicates that the number of class labels on the #CLASSMEM row for I<classVar> is
different from the number of samples in the input or testset data file.
=item Invalid class label in I<classVar> CLASSMEM vector in input/testset data file
Indicates that one or more class labels on the #CLASSMEM row for I<classVar> are
invalid. Valid class labels are those given on the #CLASSVAR row for I<classVar> and
the null class symbol #NA.
( run in 0.607 second using v1.01-cache-2.11-cpan-95122f20152 )