Missing one-hot vector
See original GitHub issueHello 😃
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:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃
Thanks for all the replies @avnishn . I will get back if I have any other questions.