Sun Aug 07, 2022 4:07 pm
Login Register Lost Password? Contact Us

Please Note: The HPCC Systems forums are moving to Stack Overflow. We invite you to post your questions on Stack Overflow utilizing the tag hpcc-ecl (https://stackoverflow.com/search?tab=newest&q=hpcc-ecl). This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.



ML Library Import

Topics related to the set of Machine Learning libraries and Matrix processing algorithms

Tue Jun 02, 2015 7:22 pm Change Time Zone

Hi,

I just imported the latest ML code to my repository but some of the code doesn't execute. Specifically, anything that uses ML.Mat.Has or ML.Mat.Each will not compile.

For example, when doing a syntax check on ML.Mat.Mul I get an error

Error: Unknown identifier "Has" (5, 11), 2167, ML.Mat.Add
Error: Unknown identifier "Has" (6, 11), 2167, ML.Mat.Add
Error: syntax error near "." : expected ')' (7, 32), 3002, ML.Mat.Add
Error: Expected boolean expression (15, 32), 2073, ML.Mat.Add
Error: Expected boolean expression (17, 14), 2073, ML.Mat.Add
Error: Unknown identifier "Each" (19, 25), 2167, ML.Mat.Has
Error: Unknown identifier "Has" (22, 11), 2167, ML.Mat.Mul
Error: syntax error near "T" : expected RANGE, ROWSET, SELF, SUCCESS, datarow, dataset, dictionary, module-name, identifier, identifier, function-name, identifier, macro-name, '^', '(', '[' (26, 18), 3002, ML.Mat.Mul
Error: syntax error near "END" : expected APPLY, BIG_ENDIAN, BUILD, DISTRIBUTION, expression, EXPORT, FEATURE, IMPORT, KEYDIFF, KEYPATCH, LITTLE_ENDIAN, LOADXML, NOTIFY, OUTPUT, PACKED, PARALLEL, PATTERN, __PLATFORM__, RANGE, RECORD, RETURN, ROWSET, RULE, SET, SHARED, type-name, SUCCESS, TOKEN, TRANSFORM, TYPEOF, UNSIGNED, UPDATE, WAIT, WILD, <, datarow, identifier, action, constant, #CONSTANT, #OPTION, #WORKUNIT, #STORED, #LINK, #ONWARNING, #WEBSERVICE, '^', ';', '$' (28, 1), 3002, ML.Mat.Mul
Error: syntax error near ":=" : expected ';' (39, 5), 3002, ML.Mat.Mul
Error: syntax error near ":=" : expected ';' (48, 4), 3002, ML.Mat.Mul
Error: syntax error near "T" : expected RANGE, ROWSET, SELF, SUCCESS, datarow, dataset, dictionary, module-name, identifier, identifier, function-name, identifier, macro-name, '^', '(', '[' (52, 17), 3002, ML.Mat.Mul
Error: syntax error near "mT" : expected RANGE, ROWSET, SELF, SUCCESS, datarow, dataset, dictionary, module-name, identifier, identifier, function-name, identifier, macro-name, '^', '(', '[' (61, 19), 3002, ML.Mat.Mul
Error: syntax error near "END" : expected APPLY, BIG_ENDIAN, BUILD, DISTRIBUTION, expression, EXPORT, FEATURE, IMPORT, KEYDIFF, KEYPATCH, LITTLE_ENDIAN, LOADXML, NOTIFY, OUTPUT, PACKED, PARALLEL, PATTERN, __PLATFORM__, RANGE, RECORD, RETURN, ROWSET, RULE, SET, SHARED, type-name, SUCCESS, TOKEN, TRANSFORM, TYPEOF, UNSIGNED, UPDATE, WAIT, WILD, <, datarow, identifier, action, constant, #CONSTANT, #OPTION, #WORKUNIT, #STORED, #LINK, #ONWARNING, #WEBSERVICE, '^', ';', '$' (63, 1), 3002, ML.Mat.Mul
Error: Unknown identifier "Has" (66, 13), 2167, ML.Mat.Mul
Error: Unknown identifier "Has" (67, 13), 2167, ML.Mat.Mul
Error: syntax error near "." : expected ')' (68, 34), 3002, ML.Mat.Mul
Error: Expected boolean expression (70, 34), 2073, ML.Mat.Mul
Error: Expected boolean expression (72, 16), 2073, ML.Mat.Mul
Error: Unknown identifier "Mul_Default" (72, 56), 2167, ML.Mat.Mul
Error: syntax error : expected APPLY, BIG_ENDIAN, BUILD, DISTRIBUTION, expression, EXPORT, FEATURE, IMPORT, KEYDIFF, KEYPATCH, LITTLE_ENDIAN, LOADXML, NOTIFY, OUTPUT, PACKED, PARALLEL, PATTERN, __PLATFORM__, RANGE, RECORD, RETURN, ROWSET, RULE, SET, SHARED, type-name, SUCCESS, TOKEN, TRANSFORM, TYPEOF, UNSIGNED, UPDATE, WAIT, WILD, <, datarow, identifier, action, constant, #CONSTANT, #OPTION, #WORKUNIT, #STORED, #LINK, #ONWARNING, #WEBSERVICE, '^', ';', '$' (74, 7), 3002, ML.Mat.Mul
Error: Unknown identifier "Has" (5, 11), 2167, ML.Mat.Add
Error: Unknown identifier "Has" (6, 11), 2167, ML.Mat.Add
Error: syntax error near "." : expected ')' (7, 32), 3002, ML.Mat.Add
Error: Expected boolean expression (15, 32), 2073, ML.Mat.Add
Error: Expected boolean expression (17, 14), 2073, ML.Mat.Add
Error: Unknown identifier "Each" (19, 25), 2167, ML.Mat.Has
Error: Unknown identifier "Has" (22, 11), 2167, ML.Mat.Mul
Error: syntax error near "T" : expected RANGE, ROWSET, SELF, SUCCESS, datarow, dataset, dictionary, module-name, identifier, identifier, function-name, identifier, macro-name, '^', '(', '[' (26, 18), 3002, ML.Mat.Mul
Error: syntax error near "END" : expected APPLY, BIG_ENDIAN, BUILD, DISTRIBUTION, expression, EXPORT, FEATURE, IMPORT, KEYDIFF, KEYPATCH, LITTLE_ENDIAN, LOADXML, NOTIFY, OUTPUT, PACKED, PARALLEL, PATTERN, __PLATFORM__, RANGE, RECORD, RETURN, ROWSET, RULE, SET, SHARED, type-name, SUCCESS, TOKEN, TRANSFORM, TYPEOF, UNSIGNED, UPDATE, WAIT, WILD, <, datarow, identifier, action, constant, #CONSTANT, #OPTION, #WORKUNIT, #STORED, #LINK, #ONWARNING, #WEBSERVICE, '^', ';', '$' (28, 1), 3002, ML.Mat.Mul
Error: syntax error near ":=" : expected ';' (39, 5), 3002, ML.Mat.Mul
Error: syntax error near ":=" : expected ';' (48, 4), 3002, ML.Mat.Mul
Error: syntax error near "T" : expected RANGE, ROWSET, SELF, SUCCESS, datarow, dataset, dictionary, module-name, identifier, identifier, function-name, identifier, macro-name, '^', '(', '[' (52, 17), 3002, ML.Mat.Mul
Error: syntax error near "mT" : expected RANGE, ROWSET, SELF, SUCCESS, datarow, dataset, dictionary, module-name, identifier, identifier, function-name, identifier, macro-name, '^', '(', '[' (61, 19), 3002, ML.Mat.Mul
Error: syntax error near "END" : expected APPLY, BIG_ENDIAN, BUILD, DISTRIBUTION, expression, EXPORT, FEATURE, IMPORT, KEYDIFF, KEYPATCH, LITTLE_ENDIAN, LOADXML, NOTIFY, OUTPUT, PACKED, PARALLEL, PATTERN, __PLATFORM__, RANGE, RECORD, RETURN, ROWSET, RULE, SET, SHARED, type-name, SUCCESS, TOKEN, TRANSFORM, TYPEOF, UNSIGNED, UPDATE, WAIT, WILD, <, datarow, identifier, action, constant, #CONSTANT, #OPTION, #WORKUNIT, #STORED, #LINK, #ONWARNING, #WEBSERVICE, '^', ';', '$' (63, 1), 3002, ML.Mat.Mul
Error: Unknown identifier "Has" (66, 13), 2167, ML.Mat.Mul
Error: Unknown identifier "Has" (67, 13), 2167, ML.Mat.Mul
Error: syntax error near "." : expected ')' (68, 34), 3002, ML.Mat.Mul
Error: Expected boolean expression (70, 34), 2073, ML.Mat.Mul
Error: Expected boolean expression (72, 16), 2073, ML.Mat.Mul
Error: Unknown identifier "Mul_Default" (72, 56), 2167, ML.Mat.Mul
Error: syntax error : expected APPLY, BIG_ENDIAN, BUILD, DISTRIBUTION, expression, EXPORT, FEATURE, IMPORT, KEYDIFF, KEYPATCH, LITTLE_ENDIAN, LOADXML, NOTIFY, OUTPUT, PACKED, PARALLEL, PATTERN, __PLATFORM__, RANGE, RECORD, RETURN, ROWSET, RULE, SET, SHARED, type-name, SUCCESS, TOKEN, TRANSFORM, TYPEOF, UNSIGNED, UPDATE, WAIT, WILD, <, datarow, identifier, action, constant, #CONSTANT, #OPTION, #WORKUNIT, #STORED, #LINK, #ONWARNING, #WEBSERVICE, '^', ';', '$' (74, 7), 3002, ML.Mat.Mul
iMikePayne
 
Posts: 31
Joined: Wed Jul 16, 2014 12:33 am

Tue Jun 02, 2015 7:47 pm Change Time Zone

I guess this is the same problem listed here and there will be no fix.

viewtopic.php?f=23&t=1705
iMikePayne
 
Posts: 31
Joined: Wed Jul 16, 2014 12:33 am

Tue Jun 02, 2015 8:08 pm Change Time Zone

I just tried the following code on the ML development cluster and it worked fine.
Code: Select all
   IMPORT * FROM ML;
   A := DATASET([
   {1,1,1},{1,2,2},{1,3,3},
   {2,1,4},{2,2,5},{2,3,6},
   {3,1,7},{3,2,8},{3,3,9}
   ], ML.Mat.Types.Element);
   OUTPUT(A,NAMED('A'));
   HasProperties := ML.Mat.Has(A);
   OUTPUT(HasProperties);
 
tlhumphrey2
 
Posts: 260
Joined: Mon May 07, 2012 6:23 pm

Tue Jun 02, 2015 8:09 pm Change Time Zone

I forgot to mention that I just downloaded the latest version of the ML library. So, we should be using the same code.
tlhumphrey2
 
Posts: 260
Joined: Mon May 07, 2012 6:23 pm

Tue Jun 02, 2015 8:15 pm Change Time Zone

I think the problem is trying to use the ML library on clusters with repositories attached. At least that's what I'm gathering from the other thread.
iMikePayne
 
Posts: 31
Joined: Wed Jul 16, 2014 12:33 am

Tue Jun 02, 2015 8:32 pm Change Time Zone

Do the other threads give you a solution to the problem when the cluster has an attacjed repository? If not, I'll see if I can find an answer, too.
tlhumphrey2
 
Posts: 260
Joined: Mon May 07, 2012 6:23 pm

Tue Jun 02, 2015 8:34 pm Change Time Zone

iMikePayne
 
Posts: 31
Joined: Wed Jul 16, 2014 12:33 am


Return to Machine Learning

Who is online

Users browsing this forum: No registered users and 1 guest

cron