Hi,
I’ve integrated keras to knime by followign the integration guide and all looks good with integration. However when I try to connect a python script where I’m basically just reading the data in converting to pandas, splitting the data into train and test and passing the train as output table as follows:
import knime.scripting.io as knio
#import tensorflow as tf
from sklearn.model_selection import train_test_split
import numpy as np
input_table = knio.input_tables[0].to_pandas()
#Get the training and val data from the table
train_table = df.iloc[0:77093,1:63]
val_table = df.iloc[77093:,1:63]
train_table, test_table = train_test_split(df, test_size = 0.2)
#Output the training table
knio.output_tables[0] = train_table
When I execute the script it throws the following error:
“from pandas.core.dtypes.dtypes import register_extension_dtype
ImportError: cannot import name ‘register_extension_dtype’”
Even when I import the register_extension_dtype, It throws the error:
ImportError: cannot import name ‘register_extension_dtype’
How do I solve this?