cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

jmp sur python

Bonjour,

 

J'essaie d'utiliser python pour comparer les résultat obtenu sur JMP. 

 

J'ai donc mon code généré par JMP mais je doit l'appliquer sur python et j'arrive à rien générer. 

 

j'arrive pas à "

import jmp_score as jmp "
qui me sort des erreurs 
Import "jmp_score" could not be resolved
 
Si quelqu'un ce connais en python et sait comment faire
4 REPLIES 4
Georg
Level VII

Re: jmp sur python

I think you have to set the right path, you can find the .py file under installation directory of your JMP:

"INSTALLATION_FOLDER\SAS\JMP\17\Scoring\Python\jmp_score.py"

open("$JMP_HOME\Scoring\Python\jmp_score.py");

 

Georg

Re: jmp sur python

from __future__ import division
import jmp_score as jmp
from math import *
import numpy as np

def getModelMetadata():
 
Mon début de code ressemble à cela, tu propose de mettre le open dès le début ?
Georg
Level VII

Re: jmp sur python

Don't know if I understood right, I think the beginning should look like this:

from __future__ import division

import sys
sys.path.append("C:/Program Files/SAS/JMPPRO/17/Scoring/Python/")
import jmp_score as jmp 

from math import *
import numpy as np

You probably need to adapt the path to your installation directory.

Georg
lala
Level VII

Re: jmp sur python

Thanks Experts!