





'''simple docstring'''






from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream
class 		lowerCamelCase  (      _A       ):



	def __init__(   self		,      a_		,      a_ = None		,      a_ = None		,      a_ = False		,      a_ = False		,      a_ = None		,      a_ = None		,      **a_		,      ):
			super().__init__(
			    features=a_		,      cache_dir=a_		,      keep_in_memory=a_		,      streaming=a_		,      num_proc=a_		,      **a_		,      )
			lowerCAmelCase     :    int						=   Generator(
			    cache_dir=a_		,      features=a_		,      generator=a_		,      gen_kwargs=a_		,      **a_		,      )





	def   _lowerCamelCase    (   self	):
			# Build iterable dataset
			if self.streaming:
					lowerCAmelCase     :    Optional[Any]						=   self.builder.as_streaming_dataset(split="train"	)
			# Build regular (map-style) dataset
			else:
					lowerCAmelCase     :    Union[str, Any]						=   None
					lowerCAmelCase     :    List[str]						=   None
					lowerCAmelCase     :    List[Any]						=   None
					lowerCAmelCase     :    str						=   None

					self.builder.download_and_prepare(
					    download_config=a_		,      download_mode=a_		,      verification_mode=a_		,      base_path=a_		,      num_proc=self.num_proc		,      )
					lowerCAmelCase     :    int						=   self.builder.as_dataset(
					    split="train"		,      verification_mode=a_		,      in_memory=self.keep_in_memory	)
			return dataset










'''simple docstring'''






import numpy as np






def      __A						(							a_						:  np.array	):
		return 1 / (1 + np.exp(-vector	))


if __name__ == "__main__":
					import doctest

					doctest.testmod()



