Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. train_offset = np.zeros(dimension)
  2. train_offset[0] = 1 / np.sqrt(dimension)
  3. test_offset = np.zeros(dimension)
  4. test_offset[1] = 1 / np.sqrt(dimension)
  5. if dimension > 2:
  6. test_offset[2] = 1 / np.sqrt(dimension)
  7. train_dataset = Dataset(
  8. dataset_size=config.batch_size * 500,
  9. pattern_density=SETUPS[Dataset][dimension]['pattern_density'],
  10. noise_density=SETUPS[Dataset][dimension]['noise_density'],
  11. normal_offset=train_offset,
  12. quantization_size=0.025,
  13. dimension=dimension)
  14. test_dataset = Dataset(
  15. dataset_size=400,
  16. pattern_density=SETUPS[Dataset][dimension]['pattern_density'],
  17. noise_density=SETUPS[Dataset][dimension]['noise_density'],
  18. normal_offset=test_offset,
  19. quantization_size=0.025,
  20. dimension=dimension)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement