Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() missing 2 required positional arguments: 'instance' and 'token' #790

Open
devVipin01 opened this issue Feb 23, 2023 · 0 comments

Comments

@devVipin01
Copy link

I want to load Parquet row groups into batches. below code working fine on my local system-

# dbfs:/output/scaled.parquet
batch_size=2
with make_batch_reader('file:/dbfs:/output/scaled.parquet', num_epochs=1,shuffle_row_groups=False) as train_reader:
    train_ds = make_petastorm_dataset(train_reader).unbatch().map(lambda x: (tf.convert_to_tensor(x))).batch(batch_size)
    for batch in train_ds:
        X_train = tf.reshape(batch,(2,1,15))
        model.fit(X_train,X_train)

But when i am trying on DataBricks it return given error TypeError: init() missing 2 required positional arguments: 'instance' and 'token'

  • So i give the instance and token in make_batch_reader but know it's given TypeError: make_batch_reader() got an unexpected keyword argument 'instance'

Help to resolve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant