Comments (1)
Hi @tengerye @CuthbertCai! Thank you for sharing the code.
I was wondering if this particular domain adaptation technique can be used in a regression problem. Let's say if I want to use this domain adaptation technique for a regression problem where the loss function for the main task is MAE or MSE. I am a bit confused about how to actually backpropagate the loss in such a case. Since in the classification problem, the total loss is a summation (according to the code) of the class loss and domain loss and as both of them are negative log-likelihood loss there is no issue while adding them. However, if the loss for the actual task and the loss for the domain classification task are different what should we do in that case? Your insight would be really helpful! Thanks!
Thanks for your appreciation! I'm not familiar with the regression problem. But I think this adversarial technique can be directly used in a regression problem if you also adopt a neural network in your task. This technique is conducted in the feature space, so I think maybe you can just add the adversarial loss to an intermediate feature space. As for combining the task loss and the adversarial loss, I think we can directly add them together. Besides, maybe a hyper-parameter is needed to balance different losses.
from pytorch_dann.
Related Issues (10)
- Result has huge difference HOT 27
- lambda for GRL is minus,but the grad has been reversal before multiply lambda. HOT 1
- Error when starting training
- Loss function HOT 4
- Evaluation does not suppress dropout, which will affect performance
- MNIST Dataloader error
- There is something wrong HOT 5
- The parameter for the trade-off of class loss and domain loss is missing HOT 1
- Version issue HOT 1
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 pytorch_dann.