Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 NoneType' object is not subscriptable
(Sep-12-2019, 07:41 PM)buran Wrote: normaly traceback would have the line numbers and I don't see anywhere in your code cell_name in async-def-wrapper()
This is the problem bro! I couldn't find any line number just this error pop up but the problem still lies in this section as I'm using jupyter thats why I know
def vectorize_sequences(sequences, dimension=10000):
results = np.zeros((len(sequences), dimension))
for i, sequence in enumerate(sequences):
results[i, sequence] = 1.
return results

Top Page

Messages In This Thread
RE: NoneType' object is not subscriptable - by shane1236 - Sep-12-2019, 07:45 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  AttributeError: 'NoneType' object has no attribute 'all' synthex 2 1,492 Mar-07-2019, 11:11 AM
Last Post: synthex
  TypeError: 'method' object is not subscriptable ayaz786amd 1 28,649 Nov-24-2018, 11:16 AM
Last Post: j.crater

Forum Jump:

Users browsing this thread: 1 Guest(s)