bruceoutdoors / cs231n Goto Github PK
View Code? Open in Web Editor NEWmy assignment solutions for CS231n Convolutional Neural Networks for Visual Recognition
my assignment solutions for CS231n Convolutional Neural Networks for Visual Recognition
reg_loss = reg * np.sum(W1 * W1) + reg * np.sum(W2 * W2)
to gain the correct loss.
the dW should be multiplied by 2regW instead of just reg*W due to the presence of square in R(W)
Hi, can you please explain me a bit how did you come to the best train model in Assignment 2 - Fully Connected Nets - Train a good model!?
How did you end with this?
weight_scale = 5e-2
learning_rate = 1e-3
model = FullyConnectedNet([100, 75, 50, 25],
weight_scale=weight_scale, dtype=np.float64)
Thanks !
Andres
Line 133: Linear_svm.py
X_mask[np.arange(num_train), y] = -incorrect_counts
should be:
X_mask[np.arange(num_train), y] -= incorrect_counts
In the Notebook file for Two layer neural net implementation in assignment one, it is mentioned:
To train our network we will use SGD with momentum.
So, SGD with momentum must be implemented in the task.
CS231n/assignment1/cs231n/classifiers/softmax.py
Hi, there is a problem that is a little wired.
When test the best_k, or in cross_validation, the result shows that the best k is near k == 10, because of the highest peak. However, when I did the following step, in which I change the k's value and get the result greater than 0.28. When k == 10, the result is not very good, but when k == 5, the result is highest .
So, My question is:
Thanks!
ps: The plot diagram has been uploaded in my github, you could see the details: https://github.com/fortyMiles/cs231n/blob/master/assignment1/knn.ipynb
In knn.ipynb file, you have:
y_cross_validation_pred = classifier_k.predict_labels(X_train_folds[n], k)
This is incorrect because predict_labels
takes in a distance matrix but you pass in a raw test matrix. So, you need to have an additional step as:
dists = classifier.compute_distances_no_loops(X_train_folds[n])
y_cross_validation_pred = classifier_k.predict_labels(dists, k)
Or you can use predict
function in k_nearest_neighbor
which technically does the same thing:
y_cross_validation_pred = classifier_k.predict(dists, k)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.