cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
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