nttcom online Posted August 4, 2022 Share Posted August 4, 2022 I downloaded autoencoder_tensorflow_v1.0.0.zip from the following URL and used Autoencoder TensorFlow --Example.dxp.URL : https://community.spotfire.com/s/exchange/aCv4z0000008OckCAE/autoencoder-tensorflow-python-data-function-for-tibco-spotfireOn the "Build and Evaluate Model" page, it says that even if the File Path is empty, it will be executed in the default state.However, when I set File Path to empty and clicked "Create Autoencoder Model", the following error message appeared.How can I resolve this error?If anyone knows please let me know.------------------------Error Message------------------------Could not execute function call '[Modeling] Autoencoder TensorFlow'2022-07-29 11:38:50.877476: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found2022-07-29 11:38:50.878140: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.2022-07-29 11:39:02.595189: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found2022-07-29 11:39:02.595235: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)2022-07-29 11:39:02.609277: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: RNW211512022-07-29 11:39:02.609595: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: RNW211512022-07-29 11:39:02.609949: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.Error executing Python script:NameError: name 'fitted_model' is not definedTraceback (most recent call last):File "data_function.py", line 341, in _execute_scriptexec(compiled_script, self.globals)File "<data_function>", line 335, in <module>Standard output:TensorFlow Version: 2.9.1Categorical Variables: ['ProductLine']Numerical Variables: ['ProdPerMinute', 'Pressure', 'BaroPressure', 'WasteGas', 'LossOfEfficiency', 'SR', 'PowerIn', '1dp', '2dp', '3dp', '4dp', '5dp', '6dp']Model file path: best_model.h5Model: "sequential"_________________________________________________________________Layer (type) Output Shape Param #=================================================================dense (Dense) (None, 64) 1088_________________________________________________________________dense_1 (Dense) (None, 32) 2080_________________________________________________________________dense_2 (Dense) (None, 5) 165_________________________________________________________________dense_3 (Dense) (None, 32) 192_________________________________________________________________dense_4 (Dense) (None, 64) 2112_________________________________________________________________dense_5 (Dense) (None, 16) 1040=================================================================Total params: 6,677Trainable params: 6,677Non-trainable params: 0_________________________________________________________________NoneError in compiling Keras model: Could not interpret optimizer identifier: <keras.optimizers.optimizer_v2.adam.Adam object at 0x00000275396BBE80>at Spotfire.Dxp.Data.DataFunctions.Executors.LocalPythonFunctionClient.<RunFunction>d__8.MoveNext()at Spotfire.Dxp.Data.DataFunctions.Executors.PythonScriptExecutor.<ExecuteFunction>d__11.MoveNext()at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d__8.MoveNext() Link to comment Share on other sites More sharing options...
Sweta Kotha Posted August 4, 2022 Share Posted August 4, 2022 Hi, I fixed a few lines of code in the DXP. Please try this version; we will update the Exchange component soon.(fixes: using packages tf.keras instead of tf.python.keras, inserting optional model optimizer) Link to comment Share on other sites More sharing options...
nttcom online Posted August 5, 2022 Author Share Posted August 5, 2022 The DXP file you gave me ran without any errors.Thank you so much. Link to comment Share on other sites More sharing options...
nttcom online Posted August 24, 2022 Author Share Posted August 24, 2022 Sorry for asking so many questions.If you know how to replace the training data and test data with data prepared at hand, please let me know.Thank you. Link to comment Share on other sites More sharing options...
Sweta Kotha Posted August 24, 2022 Share Posted August 24, 2022 The instructions on the Exchange component are still relevant for how to configure the data function with new data: https://community.spotfire.com/s/exchange/aCv4z0000008OckCAE/autoencoder-tensorflow-python-data-function-for-tibco-spotfireplease reference the links for setting up data functions and the readme for the data function Link to comment Share on other sites More sharing options...
MASUHIRO ISHITOBI Posted October 6, 2022 Share Posted October 6, 2022 My Spotfire version is 10.10.3. So i couldn't load fixed version1.1.It would be appreciated if you could give me DXP for this version or fixed python script as a text file. ーー> its done. Solved by myself. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now