'''simple docstring'''

from __future__ import annotations


def __a (	__lowerCamelCase			:						Optional[int] ,		__lowerCamelCase			:						List[str] ,		__lowerCamelCase			:						Dict				)	->							float:
						'''simple docstring'''


						if days_between_payments <= 0:
												raise ValueError("days_between_payments must be > 0"				)
						if daily_interest_rate < 0:
												raise ValueError("daily_interest_rate must be >= 0"				)
						if principal <= 0:
												raise ValueError("principal must be > 0"				)
						return principal * daily_interest_rate * days_between_payments


def __a (	__lowerCamelCase			:						Tuple ,		__lowerCamelCase			:						str ,		__lowerCamelCase			:						str ,		)	->							float:
						'''simple docstring'''


						if number_of_compounding_periods <= 0:
												raise ValueError("number_of_compounding_periods must be > 0"				)
						if nominal_annual_interest_rate_percentage < 0:
												raise ValueError("nominal_annual_interest_rate_percentage must be >= 0"				)
						if principal <= 0:
												raise ValueError("principal must be > 0"				)

						return principal * (
						    (1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods
						    - 1
						)


def __a (	__lowerCamelCase			:						Any ,		__lowerCamelCase			:						str ,		__lowerCamelCase			:						str ,		)	->							float:
						'''simple docstring'''


						if number_of_years <= 0:
												raise ValueError("number_of_years must be > 0"				)
						if nominal_annual_percentage_rate < 0:
												raise ValueError("nominal_annual_percentage_rate must be >= 0"				)
						if principal <= 0:
												raise ValueError("principal must be > 0"				)

						return compound_interest(
						    lowercase_ ,		nominal_annual_percentage_rate / 365 ,		number_of_years * 365				)


if __name__ == "__main__":
							import doctest

							doctest.testmod()







'''simple docstring'''

from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowerCAmelCase_ : Dict						  =      logging.get_logger(__name__)

lowerCAmelCase_ : List[Any]						  =      {
    "unc-nlp/lxmert-base-uncased": "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json",
}





class 							lowercase						(						__lowerCamelCase ):
   lowerCamelCase_    					='lxmert'
   lowerCamelCase_    					={}


   def __init__(   self				:	str   ,		__lowerCAmelCase				:	str=3_0522   ,		__lowerCAmelCase				:	Dict=768   ,		__lowerCAmelCase				:	List[str]=12   ,		__lowerCAmelCase				:	List[str]=9500   ,		__lowerCAmelCase				:	Optional[int]=1600   ,		__lowerCAmelCase				:	Tuple=400   ,		__lowerCAmelCase				:	str=3072   ,		__lowerCAmelCase				:	str="gelu"   ,		__lowerCAmelCase				:	Optional[Any]=0.1   ,		__lowerCAmelCase				:	List[Any]=0.1   ,		__lowerCAmelCase				:	Tuple=512   ,		__lowerCAmelCase				:	Tuple=2   ,		__lowerCAmelCase				:	Dict=0.02   ,		__lowerCAmelCase				:	int=1e-12   ,		__lowerCAmelCase				:	Union[str, Any]=9   ,		__lowerCAmelCase				:	List[str]=5   ,		__lowerCAmelCase				:	Any=5   ,		__lowerCAmelCase				:	Dict=2048   ,		__lowerCAmelCase				:	Any=4   ,		__lowerCAmelCase				:	Optional[int]=6.67   ,		__lowerCAmelCase				:	Optional[Any]=True   ,		__lowerCAmelCase				:	Tuple=True   ,		__lowerCAmelCase				:	Optional[int]=True   ,		__lowerCAmelCase				:	List[Any]=True   ,		__lowerCAmelCase				:	Optional[Any]=True   ,		__lowerCAmelCase				:	int=True   ,		__lowerCAmelCase				:	List[str]=True   ,		**__lowerCAmelCase				:	Dict   ,		)      ->					Dict:
         lowercase_     =      vocab_size
         lowercase_     =      hidden_size
         lowercase_     =      num_attention_heads
         lowercase_     =      hidden_act
         lowercase_     =      intermediate_size
         lowercase_     =      hidden_dropout_prob
         lowercase_     =      attention_probs_dropout_prob
         lowercase_     =      max_position_embeddings
         lowercase_     =      type_vocab_size
         lowercase_     =      initializer_range
         lowercase_     =      layer_norm_eps
         lowercase_     =      num_qa_labels
         lowercase_     =      num_object_labels
         lowercase_     =      num_attr_labels
         lowercase_     =      l_layers
         lowercase_     =      x_layers
         lowercase_     =      r_layers
         lowercase_     =      visual_feat_dim
         lowercase_     =      visual_pos_dim
         lowercase_     =      visual_loss_normalizer
         lowercase_     =      task_matched
         lowercase_     =      task_mask_lm
         lowercase_     =      task_obj_predict
         lowercase_     =      task_qa
         lowercase_     =      visual_obj_loss
         lowercase_     =      visual_attr_loss
         lowercase_     =      visual_feat_loss
         lowercase_     =      {"vision": r_layers, "cross_encoder": x_layers, "language": l_layers}
         super().__init__(**__lowerCAmelCase)






