Giter Club home page Giter Club logo

offline-rl-research's People

Contributors

sql-hkr avatar

Watchers

 avatar

offline-rl-research's Issues

WandB.logの修正

修正前

wandb.log(
    {
        "q1_pred": q1_pred.mean(),
        "q_target": q_target.mean(),
        "q1_ood_pred": q1_ood_pred.mean(),
        "pesudo_q_target": pesudo_q_target.mean(),
        "actor_q": q_new_actions.mean(),
        "q1_loss": qf1_loss,
        "q2_loss": qf2_loss,
        "policy_loss": policy_loss,
        "vae_loss": vae_loss,
    },
    step=self._current_epoch,
)

修正後

wandb.log(
    {
        "q1_pred": q1_pred.mean(),
        "q_target": q_target.mean(),
        "q1_ood_pred": q1_ood_pred.mean(),
        "pesudo_q_target": pesudo_q_target.mean(),
        "actor_q": q_new_actions.mean(),
        "loss/q1": qf1_loss,
        "loss/q2": qf2_loss,
        "loss/policy": policy_loss,
        "loss/vae": vae_loss,
    },
    step=self._current_epoch,
)

SCQLアルゴリズムの追加

SACアルゴリズムの損失関数に以下のペナルティー項を追加する.

$$
\mathcal{L}Q(\theta_i)
\triangleq
\mathbb{E}
{(s,a,s')\sim \mathcal{D},a'\sim \pi_\phi(\cdot \mid s')}
\left[
\frac{1}{2}
\left(
y-Q_{\theta_i}(s,a)
\right)^2\right]
+
\mathbb{E}{s\sim \mathcal{D},a\sim \pi\phi(\cdot \mid s)}
\left[
Q_{\theta_i}(s,a)
\right]
$$

ただし, $y$

$$ y \triangleq r(s,a)+\gamma \min_{j=1,2}Q_{\theta_j'}(s',a')-\alpha \log \pi_\phi(a'\mid s') $$

である.

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.