You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your contribution and sharing your implementation.
However, in this repo, the test dataloader is used for choosing the best model, but the best model is also used for testing. A more strict way for model selection is to split validation dataset from the training part because test dataset should be completely unseen before testing.
Some relative codes are shown as follows:
classModelNet40(Dataset):
def__init__(self, num_points, partition='train', gaussian_noise=False, unseen=False, factor=4):
self.data, self.label=load_data(partition)
self.num_points=num_pointsself.partition=partitionself.gaussian_noise=gaussian_noiseself.unseen=unseenself.label=self.label.squeeze()
self.factor=factorifself.unseen:
######## simulate testing on first 20 categories while training on last 20 categoriesifself.partition=='test':
self.data=self.data[self.label>=20]
self.label=self.label[self.label>=20]
elifself.partition=='train':
self.data=self.data[self.label<20]
self.label=self.label[self.label<20]
The partition parameter can only be set as 'test' or 'train' and partition=test is used for evaluating and selecting the best model for training.
Hope for your reply, cheers.
The text was updated successfully, but these errors were encountered:
Thanks for your contribution and sharing your implementation.
However, in this repo, the test dataloader is used for choosing the best model, but the best model is also used for testing. A more strict way for model selection is to split validation dataset from the training part because test dataset should be completely unseen before testing.
Some relative codes are shown as follows:
The
partition
parameter can only be set as 'test' or 'train' andpartition=test
is used for evaluating and selecting the best model for training.Hope for your reply, cheers.
The text was updated successfully, but these errors were encountered: