Giter Site home page Giter Site logo

siat-nlp / ddmn Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 5.0 5.53 MB

Code and data for the paper "Dual Dynamic Memory Network for End-to-End Multi-turn Task-oriented Dialog Systems".

License: Apache License 2.0

Python 96.01% Shell 0.71% Perl 3.28%
task-oriented-dialogue dialogue-generation memory-network

ddmn's People

Contributors

iwangjian avatar jhliu17 avatar scoyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ddmn's Issues

bug question & reproduce

  1. 请问 source/module/attention.py line 114 是否存在错误?final_memory = temp_memory + add_memory (add_memory 这里只是权重) 并没有加上更新量:add
  2. 同时模型在给定的参数下 无法复现出在 MultiWoZ的结果
    复现: | 论文中:
    F1: 26.01 | 31.4
    BLEU: 13.97 | 12.4
    请问是 有另外的超参数配置吗?

Query about metrics computation

def update(self, metrics_list):
    for i, metrics in enumerate(metrics_list):
        num_samples = metrics.pop("num_samples", 1)
        self.num_samples += num_samples
        for key, val in metrics.items():
            if val is not None:
                key_turn = str(key) + "-turn-{}".format(str(i+1))
                self.metrics_val[key_turn] = val

                if isinstance(val, torch.Tensor):
                    val = val.item()
                    self.metrics_cum[key] += val * num_samples
                elif isinstance(val, tuple):
                    assert len(val) == 2
                    val, num_words = val[0].item(), val[1]
                    self.metrics_cum[key] += np.array([val * num_samples, num_words])
                else:
                    self.metrics_cum[key] += val * num_samples

Wanted to know the reason for scaling the metrics with the number of samples in the batch, and how can one compute the perplexity for the test set

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.