cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
TShiino
Level I

When the neural network of JMP is operated in Python, the value is different.

When the neural network created by JMP was saved and run in python code, it output values different from the score output by JMP.

OS:windows 10

Python Version : 3.9

File list 

jmp_score.py
CNN_NTanH_boost.py <- JMP Python 
mypython_code.py


import CNN_NTanH_boost
import numpy as np
import pandas as pd
filepath = r"filepath"
ext = 'csv'
if filepath.endswith(ext):
    df=pd.read_csv(filepath)
else :
    df=pd.read_excel(filepath)

input_list_dict = CNN_NTanH_boost.getInputMetadata()
input_list = list(input_list_dict.keys())

output_list_dict = CNN_NTanH_boost.getOutputMetadata()
output_list = list(output_list_dict.keys())

out_df_temp = pd.DataFrame(np.zeros((1,len(output_list))),columns=output_list)

number = 0
out = CNN_NTanH_boost.score(df[ROI_list].iloc[number],out_df_temp)

0 REPLIES 0

Recommended Articles