question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing one-hot vector

See original GitHub issue

Hello 😃

The documentation mentions that MT10 and MT50 augment environment observations with a one-hot vector which identifies the task.. When I create a MT10 instance (using the code below) I do not get the task id. Could you please explain what am I missing.

import metaworld
import random

mt10 = metaworld.MT10() # Construct the benchmark, sampling tasks

training_envs = []
for name, env_cls in mt10.train_classes.items():
  env = env_cls()
  task = random.choice([task for task in mt10.train_tasks
                        if task.env_name == name])
  env.set_task(task)
  training_envs.append(env)

for env in training_envs:
  obs = env.reset()  # Reset environment
  a = env.action_space.sample()  # Sample an action
  obs, reward, done, info = env.step(a)  # Step the environoment with the sampled random action

The shape of obs is (12,) and not (13,)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
avnishncommented, Aug 19, 2020

Hi @shagunsodhani I’m going to close this issue for now because I believe that I have answered your question. Please do @ me and reopen this issue if you have more questions 😃

0reactions
shagunsodhanicommented, Aug 19, 2020

Thanks for all the replies @avnishn . I will get back if I have any other questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Machine Learning: Missing Data & One-Hot-Encoding | Kaggle
In this step, I will take three approaches to dealing with missing values. This is part of a task into learning how to...
Read more >
Missing categorical data should be encoded with an all-zero ...
After I put these through scikit's OneHotEncoder I am expecting the missing data to be encoded as 00 , since the docs state...
Read more >
Adding one-hot encoded variable to indicate missing values
I have an idea that I would love to hear people's thoughts on: just add a one-hot encoded variable for each variable with...
Read more >
Data Imputation and One-hot Encoding with a Readymade ...
Data Imputation and One-hot Encoding with a Readymade Function to impute in Python. The first step in data processing is dealing with missing...
Read more >
Missing Data Preprocessing in Credit ... - ResearchGate
A one-hot encoding-based data preprocessing method is proposed to solve the missing data problem in credit classification. In this paradigm, the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found