This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GRADED FUNCTION: L_model_forward | |
| def L_model_forward(X, parameters): | |
| """ | |
| Implement forward propagation for the [LINEAR->RELU]*(L-1)->LINEAR->SIGMOID computation | |
| Arguments: | |
| X -- data, numpy array of shape (input size, number of examples) | |
| parameters -- output of initialize_parameters_deep() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/bin/bash | |
| if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 12 ] ; then | |
| echo "Invalid Arguments" | |
| echo "Usage: script requires 3-5 Arguments: " | |
| echo " -s Path to folder which contains following scripts with exact names:" | |
| echo " StandardForm.XXX, ParityCheck.XXX, DecodingTable.XXX, Encode.XXX Decode.xxx" | |
| echo " -t Path to folder which contains public tests(where A,B,C,D,E folders are located)" | |
| echo " -T Path to folder which contains test scriptis (i.e. test_A.py, test_B.py" | |
| echo " -r Path to folder where we should put output for each test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/bin/bash | |
| if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 6 ] ; then | |
| echo "Invalid Arguments" | |
| echo "Usage: script requires 3-5 Arguments: " | |
| echo " -s Path to folder which contains following scripts with exact names:" | |
| echo " LZcompress.xxx and LZdecompress.xxx" | |
| echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)" | |
| echo " -r Path to folder where we should put output for each test" | |
| echo " -e Extension of your file (pass with dot exaple: .py)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/bin/bash | |
| if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 6 ] ; then | |
| echo "Invalid Arguments" | |
| echo "Usage: script requires 3-5 Arguments: " | |
| echo " -s Path to folder which contains following scripts with exact names:" | |
| echo " LZcompress.xxx and LZdecompress.xxx" | |
| echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)" | |
| echo " -r Path to folder where we should put output for each test" | |
| echo " -e Extension of your file (pass with dot exaple: .py)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding=utf-8 | |
| """ | |
| Your awesome Distance Vector router for CS 168 | |
| """ | |
| import sim.api as api | |
| import sim.basics as basics | |
| # We define infinity as a distance of 16. | |
| INFINITY = 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/bin/bash | |
| if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 12 ] ; then | |
| echo "Invalid Arguments" | |
| echo "Usage: script requires 3-5 Arguments: " | |
| echo " -s Path to folder which contains following scripts with exact names:" | |
| echo " SimpleRead.py, SimpleWrite.py, CompleteWrite.py, CompleteRead.py" | |
| echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)" | |
| echo " -T Path to folder which contains test scriptis (i.e. test_C.py, test_d.py" | |
| echo " -r Path to folder where we should put output for each test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/bin/bash | |
| if [ "$#" -ne 10 ] && [ "$#" -ne 8 ] && [ "$#" -ne 6 ] ; then | |
| echo "Invalid Arguments" | |
| echo "Usage: script requires 3-5 Arguments: " | |
| echo " -s Path to folder which contains following scripts with exact names:" | |
| echo " SimpleRead.py, SimpleWrite.py, CompleteWrite.py, CompleteRead.py" | |
| echo " -t Path to folder which contains public tests(where A,B,C,D folders are located)" | |
| echo " -r Path to folder where we should put output for each test" | |
| echo " -e Extension of your file (pass with dot exaple: .py)" |