get all possible single bytes in python -


I test for a machine learning algorithm (8-3-8 mural network encoder) to generate all possible bytes I am trying to Is there a way to do this in dragon without doing 8 loops?

What settings can help?

I would prefer a great way to do this, but what can I get at this time.

desired output:

  [0,0,0,0,0,0,0,0,0,0] [0,0,0, 0,0, 0,0,1] [0,0,0,0,0,0,1,0] [0,0,0,0,0,0,1,1] [0,0,0, 0,0 , 1,0,0] [0,0,0,0,0,1,0,1]. . [1,1,1,1,1,1]    

Yes, There is:

  import itertools itertools.product ([0, 1], repeat = 8) & gt; & Gt; & Gt; List (itertools.product ([0, 1], repeat = 8)) [(0, 0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 0, 0) , 1),   

[...]

  (1, 1, 1, 1, 1, 1, 1, 0), (1 , 1, 1, 1, 1, 1, 1, 1)]    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

java - Reaching JTextField in a DocumentListener -

c# - Add Image in a stackpanel based on textbox input -