hosseinshn / basic-multi-task-learning Goto Github PK
View Code? Open in Web Editor NEWThis is a repository for Multi-task learning with toy data in Pytorch and Tensorflow
This is a repository for Multi-task learning with toy data in Pytorch and Tensorflow
if epoch % 1 == 0: print('Epoch: %d, Train Cost: %5.3f ' % (epoch, epoch_cost)) dv_cost = sess.run(cost, feed_dict={X: X_valid, Y1: Y1_valid, Y2: Y2_valid, kp: 0.5}) dv_cost1 = sess.run(cost1, feed_dict={X: X_valid, Y1: Y1_valid, Y2: Y2_valid, kp: 0.5}) cost1D.append(dv_cost1) dv_cost2 = sess.run(cost2, feed_dict={X: X_valid, Y1: Y1_valid, Y2: Y2_valid, kp: 0.5}) cost2D.append(dv_cost2)
Dropout should not be used in the evaluation, so should you change it to the following?
if epoch % 1 == 0: print('Epoch: %d, Train Cost: %5.3f ' % (epoch, epoch_cost)) dv_cost = sess.run(cost, feed_dict={X: X_valid, Y1: Y1_valid, Y2: Y2_valid, **kp: 1**}) dv_cost1 = sess.run(cost1, feed_dict={X: X_valid, Y1: Y1_valid, Y2: Y2_valid, **kp: 1**}) cost1D.append(dv_cost1) dv_cost2 = sess.run(cost2, feed_dict={X: X_valid, Y1: Y1_valid, Y2: Y2_valid, **kp: 1**}) cost2D.append(dv_cost2)
Hi, thank you for sharing the multi-task learning code.
I have a question about the test step.
As described in the PyTorch code, there is a test dataset separated from the training and validation dataset.
I understood that training and validation sets used for model learning, but how can I test the model with a test dataset?
Do you have any suggestions or plans for update the code for this job?
I look forward to your reply.
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.