i have collected a dataset of cryptocurrencies historical data set that its each row…
- User
i have collected a dataset of cryptocurrencies historical data set that its each row contains following features:
Symbol Open High Low Close Volume Volume USDT tradecount volume_adi volume_obv volume_cmf volume_fi volume_em volume_sma_em volume_vpt volume_vwap volume_mfi volume_nvi volatility_bbm volatility_bbh volatility_bbl volatility_bbw volatility_bbp volatility_bbhi volatility_bbli volatility_kcc volatility_kch volatility_kcl volatility_kcw volatility_kcp volatility_kchi volatility_kcli volatility_dcl volatility_dch volatility_dcm volatility_dcw volatility_dcp volatility_atr volatility_ui trend_macd trend_macd_signal trend_macd_diff trend_sma_fast trend_sma_slow trend_ema_fast trend_ema_slow trend_vortex_ind_pos trend_vortex_ind_neg trend_vortex_ind_diff trend_trix trend_mass_index trend_dpo trend_kst trend_kst_sig trend_kst_diff trend_ichimoku_conv trend_ichimoku_base trend_ichimoku_a trend_ichimoku_b trend_stc trend_adx trend_adx_pos trend_adx_neg trend_cci trend_visual_ichimoku_a trend_visual_ichimoku_b trend_aroon_up trend_aroon_down trend_aroon_ind trend_psar_up trend_psar_down trend_psar_up_indicator trend_psar_down_indicator momentum_rsi momentum_stoch_rsi momentum_stoch_rsi_k momentum_stoch_rsi_d momentum_tsi momentum_uo momentum_stoch momentum_stoch_signal momentum_wr momentum_ao momentum_roc momentum_ppo momentum_ppo_signal momentum_ppo_hist momentum_pvo momentum_pvo_signal momentum_pvo_hist momentum_kama others_dr others_dlr others_cr T10YIE_extra T10Y2Y_extra DPRIME_extra oil_close_extra DeFi_cap_extra DEXCHUS_extra DEXJPUS_extra DEXUSEU_extra DJIA_extra EFFR_extra eth_gas_wei_extra fear_greed_extra gold_close_extra BAMLH0A0HYM2_extra DGS10_extra NASDAQCOM_extra silver_close_extra SP500_extra Tether_cap_extra Label
the Label column is as following: abel as 2: If the price is ascending in next 5 days and increased more than 5% label as 1: If the price is ascending in next 5 days and increased more than 2% label as 0: If the price is ascending or descending in next 5 days and increased or decreased less than 2% or the trend in next five days cant determined label as 3: If the price is descending in next 5 days and decreased more than than 2% label as 4: If the price is descending in next 5 days and decreased more than than 2%
I want to train a deep learning model on this dataset what architecture you suggest I use based on number of features(365) and rows(350000)(How many layers and neurons and…)?
- Assistant
- User
ok now based on your suggestion give me the proper code to implement this NN model on my dataset based on following information: separate data set to tran set,dev set, test set by 97% ,1.5%, 1.5% consider proper normalization and feature scaling on dataset and also consider Grid Search and k-fold and also confusion matrix to help me pick best model Also consider a proper mini-batch
- Assistant
- User
ValueError Traceback (most recent call last) Cell In[15], line 3 1 model = build_model() ----> 3 history = model.fit(X_train, y_train, epochs=20, batch_size=64, 4 validation_data=(X_dev, y_dev))
File c:\Users\Fazel\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\utils\traceback_utils.py:70, in filter_traceback..error_handler(*args, **kwargs) 67 filtered_tb = _process_traceback_frames(e.traceback) 68 # To get the full stack trace, call: 69 #
tf.debugging.disable_traceback_filtering()---> 70 raise e.with_traceback(filtered_tb) from None 71 finally: 72 del filtered_tbFile ~\AppData\Local\Temp_autograph_generated_filej_b26_08.py:15, in outer_factory..inner_factory..tf__train_function(iterator) 13 try: 14 do_return = True ---> 15 retval = ag__.converted_call(ag__.ld(step_function), (ag__.ld(self), ag__.ld(iterator)), None, fscope) 16 except: 17 do_return = False
ValueError: in user code:
File "c:\Users\Fazel\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\engine\training.py", line 1160, in train_function * - Assistant