__init__() got an unexpected keyword argument 'input_size'
MEMBER
Hi @J-shel, thanks for reporting.

I think the issue comes from your call to `load_dataset`. As first argument, you should pass:
- either the name of your dataset ("mrf") if this is already published on the Hub
- or the path to the loading script of your dataset ("path/to/your/local/mrf.py").
2022-12-14T06:58:50Z
https://github.com/huggingface/datasets/issues/5352#issuecomment-1350504385
https://api.github.com/repos/huggingface/datasets/issues/5352
IC_kwDODunzps5Qfw_B
https://api.github.com/repos/huggingface/datasets/issues/comments/1350504385/reactions
2022-12-14T07:00:03Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1350504385
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
NONE
Hi, following your suggestion, I changed my call to load_dataset. Below is the latest:
reader = load_dataset('data/mrf.py',"default", input_size=1024, split=split, streaming=True, keep_in_memory=None)
However, I still got the same error.
I have one question that is if I only define input_size=2048 in BUILDER_CONFIGS, may I specify input_size=1024 when loading the dataset?  Cause I found that I could only specify name="default" since I only define  name="default" in BUILDER_CONFIGS.
2022-12-19T01:38:48Z
https://github.com/huggingface/datasets/issues/5352#issuecomment-1356961758
https://api.github.com/repos/huggingface/datasets/issues/5352
IC_kwDODunzps5Q4Zfe
https://api.github.com/repos/huggingface/datasets/issues/comments/1356961758/reactions
2022-12-19T01:38:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1356961758
https://avatars.githubusercontent.com/u/82662111?v=4
https://api.github.com/users/J-shel/events{/privacy}
https://api.github.com/users/J-shel/followers
https://api.github.com/users/J-shel/following{/other_user}
https://api.github.com/users/J-shel/gists{/gist_id}
https://github.com/J-shel
J-shel
MDQ6VXNlcjgyNjYyMTEx
https://api.github.com/users/J-shel/orgs
https://api.github.com/users/J-shel/received_events
https://api.github.com/users/J-shel/repos
https://api.github.com/users/J-shel/starred{/owner}{/repo}
https://api.github.com/users/J-shel/subscriptions
User
https://api.github.com/users/J-shel
public
### Describe the bug

I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html

But when I load the dataset, I got an error "__init__() got an unexpected keyword argument 'input_size'"

### Steps to reproduce the bug

Following is the code to define the dataset:
class CsvConfig(datasets.BuilderConfig):
    """BuilderConfig for CSV."""
    input_size: int = 2048

class MRF(datasets.ArrowBasedBuilder):
    """Archival MRF data"""
    BUILDER_CONFIG_CLASS = CsvConfig
    VERSION = datasets.Version("1.0.0")
    BUILDER_CONFIGS = [
        CsvConfig(name="default", version=VERSION, description="MRF data", input_size=2048),
    ]

...

    def _generate_examples(self):
        input_size = self.config.input_size
        if input_size > 1000:
           numin = 10000
        else:
           numin = 15000


Below is the code to load the dataset:
reader = load_dataset("default", input_size=1024)

### Expected behavior

I hope to pass the "input_size" parameter to MRF datasets, and change "input_size" to any value when loading the datasets. 

### Environment info

- `datasets` version: 2.5.1
- Platform: Linux-4.18.0-305.3.1.el8.x86_64-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 9.0.0
- Pandas version: 1.5.0