Last active
January 28, 2016 13:45
-
-
Save ergo70/f602efce92a3a3658bf6 to your computer and use it in GitHub Desktop.
predict4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION r_predict4(inp integer) | |
RETURNS text AS | |
$BODY$ | |
result <- predict(mysvm, inp) | |
return(as.character(result[1:1])) | |
$BODY$ | |
LANGUAGE plr IMMUTABLE STRICT | |
COST 100; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment