Comments (2)
I'm facing problems in the same block. Here's my code:
`
# Some useful variables
m, n = X.shape
# You need to return the following variables correctly
ll_theta = np.zeros((num_labels, n + 1))
# Add ones to the X data matrix
X = np.concatenate([np.ones((m, 1)), X], axis=1)
# ====================== YOUR CODE HERE ======================
for c in np.arange(num_labels):
initial_theta=np.zeros(n+1)
options={'maxiter':50}
res=optimize.minimize(lrCostFunction,initial_theta,(X,(y==c),lambda_),jac=True,method='TNC',options=options)
all_theta[c]=res.x
# ============================================================
return all_theta`
I'm able to call the function without errors, from the next block
lambda_ = 0.1 all_theta = oneVsAll(X, y, num_labels, lambda_)
Then, when I try to submit the work, no error is thrown, but following is the result:
The scores aren't shown on Coursera either. Please help.
Thanks!
from ml-coursera-python-assignments.
#6 Fixes this issue, the author used the wrong minimization method
from ml-coursera-python-assignments.
Related Issues (20)
- machine_learning anaconda environment is missing a dependency. HOT 1
- Where do I find the new submission token?
- NameError Traceback (most recent call last)
- Exercise 5 grader issue, Please help! HOT 1
- Exercise 3 oneVsAll
- Are there any Discussion forums especially for this python exercises HOT 3
- Exercise 3 - Logistic Regression Cost Function HOT 2
- Exercise 1 suggestion
- Ex3 Neural Network Prediction Function
- HTTP Gone error HOT 1
- Can the grader work without having a token ? HOT 2
- Exercise 3 - Datasets in .mat format not working
- Any Standard Solutions?
- misunderstanding of How to multiply delta with activation in back propagation NN
- Issue submitting assigments HOT 1
- import utils not working in deepnote HOT 2
- Version of this repo but for updated Andrew Ng course HOT 1
- TypeError: only size-1 arrays can be converted to Python scalars
- Cannot submit Exercise 4
- Grader outdated again? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ml-coursera-python-assignments.