Submission of Programming Assigment

Hello All, I am facing issue in getting scores on my Programming assignment . I havnt changed anything anywhere except only adding code in the excercise and where i have asked to add code . I am getting below error . Can anyone please help …

ell #UNQ_C1. Can’t compile the student’s code. Error: ValueError(‘Unknown activation function: sigmmoid. Please ensure this object is passed to the custom_objects argument. See Keras 모델 저장 및 로드  |  TensorFlow Core for details.’)
Traceback (most recent call last):
File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/abstract.py”, line 393, in _grade
context = compiled_code.run(cell_index=cell.index)
File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/cell_7.py”, line 18, in
tf.keras.layers.Dense(1, activation=“sigmmoid”)
File “/usr/local/lib/python3.7/site-packages/keras/layers/core/dense.py”, line 118, in init
self.activation = activations.get(activation)
File “/usr/local/lib/python3.7/site-packages/tensorflow/python/util/traceback_utils.py”, line 153, in error_handler
raise e.with_traceback(filtered_tb) from None
File “/usr/local/lib/python3.7/site-packages/keras/activations.py”, line 595, in get
return deserialize(identifier)
File “/usr/local/lib/python3.7/site-packages/keras/activations.py”, line 559, in deserialize
printable_module_name=‘activation function’)
File “/usr/local/lib/python3.7/site-packages/keras/utils/generic_utils.py”, line 710, in deserialize_keras_object
f’Unknown {printable_module_name}: {object_name}. Please ensure ’
ValueError: Unknown activation function: sigmmoid. Please ensure this object is passed to the custom_objects argument. See Keras 모델 저장 및 로드  |  TensorFlow Core for details.

you have mentioned sigmoid as sigmmoid spelling error. do the correction

I have corrected that… However, still getting below error

Cell #UNQ_C2. Can’t compile the student’s code. Error: SyntaxError(“‘return’ outside function”, (‘/tmp/student_solution_cells/cell_18.py’, 42, 4, ’ return(a_out)\n’))
Traceback (most recent call last):
File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/abstract.py”, line 393, in _grade
context = compiled_code.run(cell_index=cell.index)
File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 724, in exec_module
File “”, line 860, in get_code
File “”, line 791, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/cell_18.py”, line 42

Dear Deepti- Can you help below - Let me know if i need to refresh the page… if yes, how i can do it and i only need to enter code in the required excercise only right as per direction. Please help i am new to coding … Thanks

the error now you are getting because some part of function is not in the right place. I would suggest you to do re do your work, but before update your lab environment

check this post

there is a section where it has instructions on how to refresh your lab

Did you get the refreshing part? or still need help?

Let me know if this problem is solved.

Remember assignment in these courses are positional and case sensitive. Do not remove part of the code which was already given in the notebook, otherwise you get issue with passing the grader.

Regards
DP