personality-detection icon indicating copy to clipboard operation
personality-detection copied to clipboard

'function' object has no attribute 'func_name'

Open rohith2334 opened this issue 5 years ago • 3 comments

when i run python conv_net_train.py -static -word2vec 2 this happens traceback (most recent call last): File "conv_net_train.py", line 479, in <module> activations=[Sigmoid]) File "conv_net_train.py", line 130, in train_conv_net classifier = MLPDropout(rng, input=layer1_input, layer_sizes=hidden_units, activations=activations, dropout_rates=dropout_rate) File "conv_net_classes.py", line 110, in __init__ dropout_rate=dropout_rates[layer_counter]) File "conv_net_classes.py", line 85, in __init__ activation=activation, use_bias=use_bias) File "conv_net_classes.py", line 43, in __init__ if activation.func_name == "ReLU": AttributeError: 'function' object has no attribute 'func_name'

rohith2334 avatar Jul 09 '19 11:07 rohith2334

In python3, func_name is renamed __name__

ichenjia avatar Nov 06 '19 00:11 ichenjia

In python3, func_name is renamed __name__

I have trained my model now which file should i run. is conv_test.py file or anything else and what is the command to run test file.

Souravcool1996 avatar Mar 23 '20 02:03 Souravcool1996

@Souravcool1996 can you help me I have some questions in preprocessing part if you are willing to help please contact me [email protected]

MarwanMo7amed avatar Mar 23 '20 17:03 MarwanMo7amed