code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class CanalSchema(SchemaObject): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.schema = 'Canal'
Schema Mixin for Canal Usage: place after django model in class definition, schema will return the schema.org url for the object A canal, like the Panama Canal.
6259904d0c0af96317c57786
class itkBinaryThresholdImageFilterID3IF3_Superclass(itkInPlaceImageFilterAPython.itkInPlaceImageFilterID3IF3): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor...
Proxy of C++ itkBinaryThresholdImageFilterID3IF3_Superclass class
6259904ebe383301e0254c66
class TestBenchIcarusOuter(TestBenchIcarusBase): <NEW_LINE> <INDENT> signal_names = ['clk', 'reset', 'in_data', 'in_nd', 'out_data', 'out_nd', 'error'] <NEW_LINE> def __init__(self, executable, in_samples=None, start_msgs=None, in_raw=None, sendnth=config.default_sendnth, width=config.default_width, output_msgs=True): ...
A testbench to test a module using Icarus verilog. Only a single data connection in and out. Shared by data and messages. No possibility to pass meta data currently. Message can only be sent before sending samples. Args: executable: The Icarus executable in_samples: The input samples. start_msgs: Messages ...
6259904eb830903b9686eea0
class RecordStream(object): <NEW_LINE> <INDENT> def __init__(self, graph, response): <NEW_LINE> <INDENT> self.graph = graph <NEW_LINE> self.__response = response <NEW_LINE> self.__response_item = self.__response_iterator() <NEW_LINE> self.columns = next(self.__response_item) <NEW_LINE> log.info("stream %r", self.column...
An accessor for a sequence of records yielded by a streamed Cypher statement. :: for record in graph.cypher.stream("MATCH (n) RETURN n LIMIT 10") print record[0] Each record returned is cast into a :py:class:`namedtuple` with names derived from the resulting column names. .. note :: Results are avai...
6259904e379a373c97d9a476
class Bullet(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen, ship): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.rect = pygame.Rect(0, 0, ai_settings.bullet_width, ai_settings.bullet_height) <NEW_LINE> self.rect.centerx = ship.rect.centerx <NEW_LINE> self.r...
Класс для управления пулямии выпущенными кораблем
6259904e82261d6c527308ec
class SmqtkProcess (object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.logfile = None <NEW_LINE> self.proc = None <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def logfile_name(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @...
Base class of SMQTK System process encapsulation
6259904ecb5e8a47e493cbac
class EmailCampaignTemplateAllOfSenderData(object): <NEW_LINE> <INDENT> openapi_types = { 'name': 'str', 'value': 'str' } <NEW_LINE> attribute_map = { 'name': 'name', 'value': 'value' } <NEW_LINE> def __init__(self, name=None, value=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration i...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
6259904e3617ad0b5ee0758b
class Solution: <NEW_LINE> <INDENT> def findRadius(self, houses, heaters): <NEW_LINE> <INDENT> ret = 0 <NEW_LINE> houses.sort() <NEW_LINE> heaters.sort() <NEW_LINE> j = 0 <NEW_LINE> for i in range(len(houses)): <NEW_LINE> <INDENT> while j < (len(heaters) - 1): <NEW_LINE> <INDENT> diff_1 = abs(heaters[j] - houses[i]) <N...
@param houses: positions of houses @param heaters: positions of heaters @return: the minimum radius standard of heaters
6259904e435de62698e9d254
class Solution: <NEW_LINE> <INDENT> def generatePossibleNextMoves(self, s): <NEW_LINE> <INDENT> if "++" in s: <NEW_LINE> <INDENT> next_moves = [] <NEW_LINE> for i in range(len(s)-1): <NEW_LINE> <INDENT> if s[i] == "+" and s[i+1] == "+": <NEW_LINE> <INDENT> next_moves.append(s[:i] + "--" + s[i+2:]) <NEW_LINE> <DEDENT> <...
@param s: the given string @return: all the possible states of the string after one valid move
6259904e50485f2cf55dc3d7
class API(Thread): <NEW_LINE> <INDENT> def __init__(self,func,**param): <NEW_LINE> <INDENT> super(API,self).__init__() <NEW_LINE> self.func = func <NEW_LINE> self.param = param <NEW_LINE> self.result = [] <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> if callable(getattr(self ,self.func)): <NEW_LINE> <INDENT> ...
6259904eb57a9660fecd2ec8
class GroupAtom(GroupRSS): <NEW_LINE> <INDENT> feed_type = Atom1Feed <NEW_LINE> subtitle = GroupRSS.description
Atom feed for a group's releases.
6259904e1f037a2d8b9e5292
class ReflexAgent(Agent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> legalMoves = gameState.getLegalActions() <NEW_LINE> scores = [self.evaluationFunction(gameState, action) for action in legalMoves] <NEW_LINE> bestScore = max(scores) <NEW_LINE> bestIndices = [index for index in range(len(s...
A reflex agent chooses an action at each choice point by examining its alternatives via a state evaluation function. The code below is provided as a guide. You are welcome to change it in any way you see fit, so long as you don't touch our method headers.
6259904e7cff6e4e811b6e87
class Tipo_telefono(models.Model): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Tipo_telefono, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> tipo_telefono = models.CharField(max_length=50, unique=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.tipo_telefon...
docstring for Tipo_telefono
6259904e3539df3088ecd6f0
class RandomOrderAug(Augmenter): <NEW_LINE> <INDENT> def __init__(self, ts): <NEW_LINE> <INDENT> super(RandomOrderAug, self).__init__() <NEW_LINE> self.ts = ts <NEW_LINE> <DEDENT> def dumps(self): <NEW_LINE> <INDENT> return [self.__class__.__name__.lower(), [x.dumps() for x in self.ts]] <NEW_LINE> <DEDENT> def __call__...
Apply list of augmenters in random order Parameters ---------- ts : list of augmenters A series of augmenters to be applied in random order
6259904e3c8af77a43b68964
class MovingAverage(object): <NEW_LINE> <INDENT> def __init__(self, window): <NEW_LINE> <INDENT> self.window = window <NEW_LINE> <DEDENT> def simple_moving_average(self, series): <NEW_LINE> <INDENT> return series.ix[-self.window:].mean() <NEW_LINE> <DEDENT> def simple_z_score(self, series): <NEW_LINE> <INDENT> recent =...
Moving Average Class Provides support for both simple moving averages and exponential moving averages
6259904e63d6d428bbee3c18
class NamedStyle(Serialisable): <NEW_LINE> <INDENT> font = Typed(expected_type=Font) <NEW_LINE> fill = Typed(expected_type=Fill) <NEW_LINE> border = Typed(expected_type=Border) <NEW_LINE> alignment = Typed(expected_type=Alignment) <NEW_LINE> number_format = NumberFormatDescriptor() <NEW_LINE> protection = Typed(expecte...
Named and editable styles
6259904ed6c5a102081e356a
class DeltaField(Field): <NEW_LINE> <INDENT> def __init__(self, doc, **kwargs): <NEW_LINE> <INDENT> super(DeltaField, self).__init__(doc, datetime.timedelta, **kwargs) <NEW_LINE> <DEDENT> def convert(self, value): <NEW_LINE> <INDENT> if isinstance(value, (int, long)): <NEW_LINE> <INDENT> value = datetime.timedelta(seco...
A field which accepts only :class:`datetime.timedelta` type.
6259904e26068e7796d4dd91
class RabiResult: <NEW_LINE> <INDENT> def __init__(self, rabi_angles: Sequence[float], excited_state_probabilities: Sequence[float]): <NEW_LINE> <INDENT> self._rabi_angles = rabi_angles <NEW_LINE> self._excited_state_probs = excited_state_probabilities <NEW_LINE> <DEDENT> @property <NEW_LINE> def data(self) -> Sequence...
Results from a Rabi oscillation experiment.
6259904e3cc13d1c6d466b86
class DOS(HelperFunctions): <NEW_LINE> <INDENT> cal_dts = { 'matterial': 'Si', 'temp': 300., 'author': None, } <NEW_LINE> author_list = 'DOS.models' <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> temp = locals().copy() <NEW_LINE> del temp['self'] <NEW_LINE> self._update_dts(**temp) <NEW_LINE> author_file ...
The density of states is a value that determines the number of free states for electrons and holes in the conduction and valance band
6259904e0a366e3fb87dde33
class TGrant(TElem): <NEW_LINE> <INDENT> type = T_GRANT <NEW_LINE> SQL = "SELECT relacl FROM pg_class where oid = %(oid)s" <NEW_LINE> acl_map = { 'a': 'INSERT', 'r': 'SELECT', 'w': 'UPDATE', 'd': 'DELETE', 'D': 'TRUNCATE', 'x': 'REFERENCES', 't': 'TRIGGER', 'X': 'EXECUTE', 'U': 'USAGE', 'C': 'CREATE', 'T': 'TEMPORARY',...
Info about permissions.
6259904e29b78933be26aae9
class LRUCache(Cache): <NEW_LINE> <INDENT> def __init__(self, maxsize, getsizeof=None): <NEW_LINE> <INDENT> if getsizeof is not None: <NEW_LINE> <INDENT> Cache.__init__(self, maxsize, lambda e: getsizeof(e[0])) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> Cache.__init__(self, maxsize) <NEW_LINE> <DEDENT> root = Node()...
Least Recently Used (LRU) cache implementation. This class discards the least recently used items first to make space when necessary.
6259904e07d97122c42180f1
class Element(metaclass=ABCMeta): <NEW_LINE> <INDENT> __attrs_attrs__ = [] <NEW_LINE> @staticmethod <NEW_LINE> def element(wrapped_cls): <NEW_LINE> <INDENT> return attr.s(wrapped_cls, frozen=True) <NEW_LINE> <DEDENT> def unzip_to_tuple(self): <NEW_LINE> <INDENT> return tuple((getattr(self, attribute.name) for attribute...
Represents a type to be placed in a Replay buffer (however, they can be used for other purposes as well, and do not require a buffer) There purpose is to serve as keepers of steps taken by the agent and the associated changes in the environment.
6259904e55399d3f05627968
class HallazgoForm(EmergenciaBaseForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Hallazgo <NEW_LINE> fields = '__all__' <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(HallazgoForm, self).__init__(*args, **kwargs) <NEW_LINE> self.helper.layout = Fieldset(u'Agregar H...
Formulario para agregar :class:`RemisionExterna`s
6259904ed53ae8145f9198b0
class C2DEnv(object): <NEW_LINE> <INDENT> def __init__(self, env, n_bins=30): <NEW_LINE> <INDENT> assert isinstance(env.action_space, gym.spaces.Box) <NEW_LINE> assert len(env.action_space.shape) == 1 <NEW_LINE> self.env = env <NEW_LINE> self.n_bins = n_bins <NEW_LINE> self.action_space = gym.spaces.MultiDiscrete( env....
Wrapper environment for converting continuous action space to multi discrete action space. Parameters ---------- env : gym.Env n_bins : int Number of bins for converting continuous to discrete. e.g. continuous action space is 0 ~ 1 and n_bins=5, action space is converted to [0, 0.25, 0.5, 0.75, 1]
6259904ed7e4931a7ef3d4c6
class CometResponse(StreamingIframeResponse): <NEW_LINE> <INDENT> pass
Class used for Comet handler functions, instead of the :class:`sijax.response.BaseResponse` class. This class extends :class:`sijax.response.BaseResponse` and every available method from it works here too.
6259904e07f4c71912bb0882
class BaseProtocol(event_emitter.EventEmitter): <NEW_LINE> <INDENT> def __init__(self, host, port, secure=True): <NEW_LINE> <INDENT> super(BaseProtocol, self).__init__() <NEW_LINE> self.host = host <NEW_LINE> self.port = port <NEW_LINE> self.secure = secure <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> ret...
Base FD Interface
6259904eb57a9660fecd2eca
class Signer(Recipient): <NEW_LINE> <INDENT> attributes = ['clientUserId', 'email', 'emailBody', 'emailSubject', 'name', 'recipientId', 'routingOrder', 'supportedLanguage', 'tabs', 'accessCode', 'userId'] <NEW_LINE> attribute_defaults = { 'name': '', 'routingOrder': 0 } <NEW_LINE> def __init__(self, **kwargs): <NEW_LIN...
A recipient who must sign, initial, date or add data to form fields on the documents in the envelope. DocuSign reference lives at https://docs.docusign.com/esign/restapi/Envelopes/EnvelopeRecipients/#signers-recipient
6259904e07d97122c42180f2
class Indexer(object): <NEW_LINE> <INDENT> def __init__(self, index_path=None): <NEW_LINE> <INDENT> self.index_path = index_path <NEW_LINE> self.inverted_index = {} <NEW_LINE> self.docs_index = [] <NEW_LINE> self.term_id = 0 <NEW_LINE> self.doc_id = 0 <NEW_LINE> self.preprocessor = Preprocessor() <NEW_LINE> <DEDENT> de...
search engine indexing class
6259904e94891a1f408ba11c
class DEPTh(SCPINode, SCPIQuery, SCPISet): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _cmd = "DEPTh" <NEW_LINE> args = ["1"]
SOURce:ILS:GSLope:COMid:DEPTh Arguments: 1
6259904e73bcbd0ca4bcb6d7
class FeatLabelPadCollator(PadCollator): <NEW_LINE> <INDENT> @overrides <NEW_LINE> def __call__(self, features, labels, apply_pad_labels=(), apply_pad_values=()): <NEW_LINE> <INDENT> self.collate(features) <NEW_LINE> self.collate(labels, apply_pad=False, apply_pad_labels=apply_pad_labels, apply_pad_values=apply_pad_val...
Collator apply pad and make tensor Minimizes amount of padding needed while producing mini-batch. FeatLabelPadCollator allows applying pad to not only features, but also labels. * Kwargs: cuda_device_id: tensor assign to cuda device id Default is None (CPU) skip_keys: skip to make tensor
6259904e8e71fb1e983bcf14
class CustomTokenObtainPairSerializer(TokenObtainPairSerializer): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_token(cls, user): <NEW_LINE> <INDENT> token = super(CustomTokenObtainPairSerializer, cls).get_token(user) <NEW_LINE> token['username'] = user.username <NEW_LINE> token['email'] = user.email <NEW_LINE> r...
Subclassing the TokenObtainPairSerializer to add more claims in the payload section of the JWT
6259904ee76e3b2f99fd9e4f
class ChangeRequest(Base): <NEW_LINE> <INDENT> __tablename__ = 'change_request' <NEW_LINE> summary = db.Column(db.String(255)) <NEW_LINE> requestor = db.Column(db.String(255)) <NEW_LINE> application = db.Column(db.String(255)) <NEW_LINE> source_location = db.Column(db.String(255)) <NEW_LINE> destination_location = db.C...
Change Request model Represents firewall policy change requests. I.e. in the human form, "This server needs to talk to this other sever over this port." The implementation of a change request is what we are actually trying to automate here...
6259904edc8b845886d54a0c
class CensysCommentNotFoundException(CensysAsmException): <NEW_LINE> <INDENT> pass
Exception raised when the requested comment is not found.
6259904e16aa5153ce40193d
class Solution: <NEW_LINE> <INDENT> def wordBreak(self, s: str, wordDict: List[str]) -> bool: <NEW_LINE> <INDENT> t = Trie() <NEW_LINE> for w in wordDict: <NEW_LINE> <INDENT> t.addWord(w) <NEW_LINE> <DEDENT> L = len(s) <NEW_LINE> dp = [True] <NEW_LINE> for i in range(1, (L+1)): <NEW_LINE> <INDENT> dp += any(dp[j] and t...
https://leetcode.com/problems/word-break/discuss/274536/python-trie-%2B-bfs-solution.-O(N)-on-english-dictionary
6259904e76e4537e8c3f09d5
class Milestone: <NEW_LINE> <INDENT> def __init__(self, project_data): <NEW_LINE> <INDENT> for k in iter(project_data): <NEW_LINE> <INDENT> setattr(self, k, project_data[k])
Create a Milestone object from the JSON data retrieved from the API
6259904e6e29344779b01a92
class Trough8x1(Plate): <NEW_LINE> <INDENT> num_rows = 8 <NEW_LINE> num_columns = 1 <NEW_LINE> def __init__(self, name, data=None): <NEW_LINE> <INDENT> Plate.__init__(self, name=name, data=data) <NEW_LINE> for well in self: <NEW_LINE> <INDENT> well.content = self["A1"].content
Eight positions share the same content
6259904ed53ae8145f9198b1
class TextUtils(object): <NEW_LINE> <INDENT> def find_matches(self, word, collection, fuzzy): <NEW_LINE> <INDENT> word = self._last_token(word).lower() <NEW_LINE> matches = [] <NEW_LINE> for suggestion in self._find_collection_matches(word, collection, fuzzy): <NEW_LINE> <INDENT> matches.append(suggestion) <NEW_LINE> <...
Utilities for parsing and matching text.
6259904e0fa83653e46f632e
class Platform(Element): <NEW_LINE> <INDENT> TYPE = 'Platform' <NEW_LINE> TYPE_C = 'Platform' <NEW_LINE> def reload(self): <NEW_LINE> <INDENT> if XMLClient().request('POST', self.url['self'] + '/reload'): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> <DED...
Class to manage the platform
6259904e55399d3f0562796a
class ClientList(object): <NEW_LINE> <INDENT> __metaclass__ = Singleton <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> result = toggl("%s/clients" % TOGGL_URL, 'get') <NEW_LINE> self.client_list = json.loads(result) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> self.iter_index = 0 <NEW_LINE> return se...
A singleton list of clients. A "client object" is a set of properties as documented at https://github.com/toggl/toggl_api_docs/blob/master/chapters/clients.md
6259904e07f4c71912bb0884
class SectionMatchClass: <NEW_LINE> <INDENT> def __init__(self, start, end, start_token_number, start_token, end_token_number, end_token, title, EBI_title): <NEW_LINE> <INDENT> self.start = start <NEW_LINE> self.end = end <NEW_LINE> self.start_token_number = start_token_number <NEW_LINE> self.start_token = start_token ...
Class for handling source section matches
6259904e8a43f66fc4bf35e7
class Template(object): <NEW_LINE> <INDENT> def __init__(self, name, app = None, encoding = 'utf-8', indent = False): <NEW_LINE> <INDENT> super(Template, self).__init__() <NEW_LINE> self.app = app <NEW_LINE> self.name = name <NEW_LINE> self.encoding = encoding <NEW_LINE> self.encoding_errors = 'replace' <NEW_LINE>...
Generic template class
6259904e94891a1f408ba11d
class ThemeManager(BaseObject): <NEW_LINE> <INDENT> def __init__(self, user_theme=u"current"): <NEW_LINE> <INDENT> super(ThemeManager, self).__init__() <NEW_LINE> self.exceptions = ThemeExceptions(self) <NEW_LINE> self.user_theme = user_theme <NEW_LINE> <DEDENT> def get_theme(self, name='default'): <NEW_LINE> <INDENT> ...
Root theme manager. This is the object contained in the 'theme' name in a `RequestContext`. Supports the following: exception: Any exceptions that occur in the theming process and feel like they can't be handled should be handled by calling `ThemeManager.exception`. exceptions: An attribute containin...
6259904e462c4b4f79dbce50
class ApplicationGatewayRewriteRuleSet(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'rewrite_rule...
Rewrite rule set of an application gateway. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :param name: Name of the rewrite rule set that is unique within an Application Gateway. :type name: str :ivar etag: A unique read-only string that c...
6259904e097d151d1a2c24c0
class Operation(QtGui.QWidget): <NEW_LINE> <INDENT> def __init__(self, name, main, func, widgets=[]): <NEW_LINE> <INDENT> super(Operation, self).__init__(None) <NEW_LINE> layout = QtGui.QGridLayout(self) <NEW_LINE> self.name = name <NEW_LINE> self.main = main <NEW_LINE> self.func = func <NEW_LINE> self.items = {} <NEW_...
Contains the name and GUI widgets for the parameters of an operation.
6259904e15baa723494633dd
class V1beta1HorizontalPodAutoscaler(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1HorizontalPodAutoscalerSpec', 'status': 'V1beta1HorizontalPodAutoscalerStatus' } <NEW_LINE> self.attribute_map...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259904eac7a0e7691f7392c
class Ball(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, board, square_model, square_view): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self) <NEW_LINE> self.board = board <NEW_LINE> self.square_model = square_model <NEW_LINE> self.image = load_image('red_ball.png') <NEW_LINE> self.rect = self.ima...
This represense a ball on a square. The following attributes are used: board This is the rendering group. This ball adds itself to the board in order to be rendered on an as needed basis. square_model This is the associated instance of model.Square.
6259904e7d847024c075d824
class animateTransform(BaseShape, CoreAttrib, ConditionalAttrib, ExternalAttrib, AnimationEventsAttrib, AnimationAttrib, AnimationAttributeAttrib, AnimationTimingAttrib, AnimationValueAttrib, AnimationAdditionAttrib): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> BaseElement.__init__(self, 'anim...
Class representing the animateTransform element of an svg doc.
6259904ed6c5a102081e356f
class AzureDataLakeStorageRESTAPIConfiguration(Configuration): <NEW_LINE> <INDENT> def __init__( self, url: str, **kwargs: Any ) -> None: <NEW_LINE> <INDENT> if url is None: <NEW_LINE> <INDENT> raise ValueError("Parameter 'url' must not be None.") <NEW_LINE> <DEDENT> super(AzureDataLakeStorageRESTAPIConfiguration, self...
Configuration for AzureDataLakeStorageRESTAPI. Note that all parameters used to create this instance are saved as instance attributes. :param url: The URL of the service account, container, or blob that is the targe of the desired operation. :type url: str
6259904e6e29344779b01a94
class SpaceGroup(object): <NEW_LINE> <INDENT> def __init__(self, number, symbol, transformations): <NEW_LINE> <INDENT> self.number = number <NEW_LINE> self.symbol = symbol <NEW_LINE> self.transformations = transformations <NEW_LINE> self.transposed_rotations = N.array([N.transpose(t[0]) for t in transformations]) <NEW_...
Space group All possible space group objects are created in this module. Other modules should access these objects through the dictionary space_groups rather than create their own space group objects.
6259904ed53ae8145f9198b4
class FixedGraphEditDistanceDataset(GraphEditDistanceDataset): <NEW_LINE> <INDENT> def __init__( self, n_nodes_range, p_edge_range, n_changes_positive, n_changes_negative, dataset_size, permute=True, seed=1234, ): <NEW_LINE> <INDENT> super(FixedGraphEditDistanceDataset, self).__init__( n_nodes_range, p_edge_range, n_ch...
A fixed dataset of pairs or triplets for the graph edit distance task. This dataset can be used for evaluation.
6259904e55399d3f0562796c
class EventManipulator(ManipulatorBase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def getCacheKeysAndControllers(cls, affected_refs): <NEW_LINE> <INDENT> return CacheClearer.get_event_cache_keys_and_controllers(affected_refs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def postUpdateHook(cls, events, updated_attr_li...
Handle Event database writes.
6259904ed7e4931a7ef3d4ca
class SoundPlayer : <NEW_LINE> <INDENT> PLAYER = "/usr/bin/aplay" <NEW_LINE> def __init__(self) : <NEW_LINE> <INDENT> self.curpath = None <NEW_LINE> self.current = None <NEW_LINE> <DEDENT> def __del__(self) : <NEW_LINE> <INDENT> print("__del__ : Waiting for last play") <NEW_LINE> self.wait() <NEW_LINE> <DEDENT> def pla...
Play sounds that don't overlap in time.
6259904e07f4c71912bb0886
class NewComment(LoginRequiredMixin, FormView): <NEW_LINE> <INDENT> http_method_names = ['post'] <NEW_LINE> template_name = 'blog/post.html' <NEW_LINE> form_class = CommentForm <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> form.save() <NEW_LINE> return super().form_valid(form) <NEW_LINE> <DEDENT> def get_s...
A post only view for new comments. for logged in users
6259904eb57a9660fecd2ece
class ControllerProcessWrapper(object): <NEW_LINE> <INDENT> def __init__(self, rpc, cmd, verbose=False, detached=False, cwd=None, key=None): <NEW_LINE> <INDENT> logging.info('Creating a process with cmd=%s', cmd) <NEW_LINE> self._rpc = rpc <NEW_LINE> self._key = rpc.subprocess.Process(cmd, key) <NEW_LINE> logging.info(...
Controller-side process wrapper class. This class provides a more intuitive interface to task-side processes than calling the methods directly using the RPC object.
6259904e76d4e153a661dca1
class IMetaCompetence(Interface): <NEW_LINE> <INDENT> pass
A meta competence
6259904e73bcbd0ca4bcb6db
class Dashboard: <NEW_LINE> <INDENT> url = None <NEW_LINE> token = None <NEW_LINE> api_endpoint = '/api/dashboard' <NEW_LINE> def __init__(self, url, token): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.token = token <NEW_LINE> <DEDENT> def get(self, id=None): <NEW_LINE> <INDENT> headers = { "Content-Type": "appl...
Card Class is core class which provides metabase dashboards. Attributes: url (str) : metabase host. default value None token (str) : metabase session token. default value None api_endpoint (str) : metabase api endpoint Return: class object
6259904e6fece00bbaccce0c
class RandomNodeTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_set_cpd(self): <NEW_LINE> <INDENT> n = nodes.RandomNode("test") <NEW_LINE> with self.assertRaises(NotImplementedError) as cm: <NEW_LINE> <INDENT> n.set_cpd(None) <NEW_LINE> <DEDENT> self.assertEqual(str(cm.exception), "Called unimplemented method.") ...
This is the baseclass for all nodes. Only subclasses should be used.
6259904e1f037a2d8b9e5295
class JobLogSummaryWorkspaceJob(): <NEW_LINE> <INDENT> def __init__(self, *, resources_add: float = None, resources_modify: float = None, resources_destroy: float = None) -> None: <NEW_LINE> <INDENT> self.resources_add = resources_add <NEW_LINE> self.resources_modify = resources_modify <NEW_LINE> self.resources_destroy...
Workspace Job log summary. :attr float resources_add: (optional) Number of resources add. :attr float resources_modify: (optional) Number of resources modify. :attr float resources_destroy: (optional) Number of resources destroy.
6259904e462c4b4f79dbce52
class TrainHillClimb(Train): <NEW_LINE> <INDENT> def __init__(self, goal_minimize=True): <NEW_LINE> <INDENT> Train.__init__(self, goal_minimize) <NEW_LINE> <DEDENT> def train(self, x0, funct, acceleration=1.2, step_size=1.0): <NEW_LINE> <INDENT> iteration_number = 1 <NEW_LINE> self.position = list(x0) <NEW_LINE> self.b...
Train using hill climbing. Hill climbing can be used to optimize the long term memory of a Machine Learning Algorithm. This is done by moving the current long term memory values to a new location if that new location gives a better score from the scoring function. http://en.wikipedia.org/wiki/Hill_climbing
6259904eb57a9660fecd2ecf
class itrs(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def rotation_at(t): <NEW_LINE> <INDENT> R = mxm(rot_z(-t.gast * tau / 24.0), t.M) <NEW_LINE> if t.ts.polar_motion_table is not None: <NEW_LINE> <INDENT> R = mxm(t.polar_motion_matrix(), R) <NEW_LINE> <DEDENT> return R <NEW_LINE> <DEDENT> @staticmethod <NE...
The International Terrestrial Reference System (ITRS). This is the IAU standard for an Earth-centered Earth-fixed (ECEF) coordinate system, anchored to the Earth’s crust and continents. This reference frame combines three other reference frames: the Earth’s true equator and equinox of date, the Earth’s rotation with r...
6259904e4428ac0f6e659985
class MockMatplotlibMethods(MockBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> plt_attrs = {'subplots': Mock(return_value=(MagicMock(), MagicMock()))} <NEW_LINE> self.patcher_pyplot = patch('model_analyzer.plots.simple_plot.plt', Mock(**plt_attrs)) <NEW_LINE> super().__init__() <NEW_LINE> <DEDENT> d...
Mock class that mocks matplotlib
6259904e0c0af96317c5778a
class PositionList(generics.ListAPIView, viewsets.GenericViewSet): <NEW_LINE> <INDENT> serializer_class = PositionsSerializer <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> imo = self.kwargs['imo'] <NEW_LINE> return Position.objects.filter(ship__imo_number=imo).distinct()
API endpoint that allows listing positions for a ship provided the imo.
6259904ea79ad1619776b4d3
class Operator: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> pass
Used as a wildcards and operators when matching message arguments (see assertMessageMatch and match_list)
6259904eac7a0e7691f7392e
class Meta: <NEW_LINE> <INDENT> model = Task <NEW_LINE> exclude = []
This class contains the serializer metadata.
6259904e82261d6c527308f0
class GroupByDateEditForm(EditForm): <NEW_LINE> <INDENT> form_fields = form.FormFields(IGroupByDateAction) <NEW_LINE> form_fields['base_folder'].custom_widget = UberSelectionWidget <NEW_LINE> label = _(u"Edit group by date action") <NEW_LINE> description = _(u"A content rules action to move an item to a folder" u" stru...
An edit form for the group by date action
6259904e24f1403a926862f7
class MissingVersionHandled(CloudInitPickleMixin, metaclass=_Collector): <NEW_LINE> <INDENT> def __getstate__(self): <NEW_LINE> <INDENT> return self.__dict__ <NEW_LINE> <DEDENT> def _unpickle(self, ci_pkl_version: int) -> None: <NEW_LINE> <INDENT> assert 0 == ci_pkl_version
Test that pickles without ``_ci_pkl_version`` are handled gracefully. This is tested by overriding ``__getstate__`` so the dumped pickle of this class will not have ``_ci_pkl_version`` included.
6259904e0fa83653e46f6332
class PasteWindow(QtWidgets.QDialog): <NEW_LINE> <INDENT> _mw = None <NEW_LINE> def __init__(self, main): <NEW_LINE> <INDENT> super(PasteWindow, self).__init__() <NEW_LINE> self._mw = main <NEW_LINE> self.gridLayout = QtWidgets.QGridLayout(self) <NEW_LINE> self.pasteButton = QtWidgets.QPushButton( QtGui.QIcon.fromTheme...
A simple window to paste items.
6259904e71ff763f4b5e8bfb
class CIFARFractalNet(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, channels, num_columns, dropout_probs, loc_drop_prob, glob_drop_ratio, in_channels=3, in_size=(32, 32), classes=10, **kwargs): <NEW_LINE> <INDENT> super(CIFARFractalNet, self).__init__(**kwargs) <NEW_LINE> self.in_size = in_size <NEW_LINE> self.c...
FractalNet model for CIFAR from 'FractalNet: Ultra-Deep Neural Networks without Residuals,' https://arxiv.org/abs/1605.07648. Parameters: ---------- channels : list of int Number of output channels for each unit. num_columns : int Number of columns in each block. dropout_probs : list of float Probability o...
6259904e50485f2cf55dc3dc
class UserBest(BaseModel): <NEW_LINE> <INDENT> def __init__(self, *, api : 'OsuApi' = None, **data): <NEW_LINE> <INDENT> super().__init__(api) <NEW_LINE> self.rank = data.get('rank' , "") <NEW_LINE> self.user_id = int(data.get('user_id' , 0)) <NEW_LINE> self.count50 = int(data.get...
User best model
6259904ee76e3b2f99fd9e54
class StraightHTML(Base.WebElement): <NEW_LINE> <INDENT> __slots__ = ('html') <NEW_LINE> properties = Base.WebElement.properties.copy() <NEW_LINE> properties['html'] = {'action':'classAttribute'} <NEW_LINE> def _create(self, name=None, id=None, parent=None, html=""): <NEW_LINE> <INDENT> Base.WebElement._create(self, No...
Simply displays the html as it is given
6259904ed4950a0f3b11186d
class HttpClient(object): <NEW_LINE> <INDENT> def __init__(self, host, port, user, password, verify): <NEW_LINE> <INDENT> self.base_url = 'https://%s:%s/api/rest/' % (host, port) <NEW_LINE> self.session = requests.Session() <NEW_LINE> self.session.auth = (user, password) <NEW_LINE> self.header = {} <NEW_LINE> self.head...
Wrapper class for making Storage Center API calls.
6259904ebaa26c4b54d506fe
class BinaryExpr(Expr): <NEW_LINE> <INDENT> def __init__(self, left_expr, right_expr): <NEW_LINE> <INDENT> Expr.__init__(self) <NEW_LINE> self._left_expr = left_expr <NEW_LINE> self._right_expr = right_expr <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _op_symbol(cls): <NEW_LINE> <INDENT> raise FatalError('UnaryExpr....
Base class for binary operators. This is an abstract class: two functions, _op_symbol and _binary_func must be implemented in each subclass. Attributes: _left_expr: an expression (Expr object) on left side. _right_expr: an expression (Expr object) on right side.
6259904e23849d37ff852512
class Worker(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, fn, channel, data): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.fn = fn <NEW_LINE> self.channel = channel <NEW_LINE> self.data = data <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return f"<{self.__class__.__name...
Thread subclass to for handling pubsub events
6259904e8da39b475be0463e
class ProductFileInline(admin.StackedInline): <NEW_LINE> <INDENT> model = ProductFile
Inline view of ProductFile admin
6259904e96565a6dacd2d9b3
class Input(Node): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Input, self).__init__() <NEW_LINE> <DEDENT> def store(self, inp): <NEW_LINE> <INDENT> self._output = inp <NEW_LINE> <DEDENT> def get_output(self): <NEW_LINE> <INDENT> return self._output <NEW_LINE> <DEDENT> def fit(self, *args, **kwarg...
A Node to be used as a placeholder for the graph's input.
6259904e596a897236128fd9
class JSONBool(int, _JSONTypeBase): <NEW_LINE> <INDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if len(args) == 0: <NEW_LINE> <INDENT> b = 0 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> b = 1 if args[0] >= 1 else 0 <NEW_LINE> <DEDENT> return int.__new__(JSONBool, b) <NEW_LINE> <DEDENT> def __init__(self...
注意,不要将JSONBool实例通过 is 关键字和 True 比较,这样的结果永远是 False。例: jbool = JSONBool(True) print(jbool is True) # False print(jbool == True) # True print(jbool.true()) # True print(jbool.true() is True) # True
6259904e8e7ae83300eea4e9
@attr.s <NEW_LINE> class TrialRecord(object): <NEW_LINE> <INDENT> trial_name = attr.ib() <NEW_LINE> principal_investigator = attr.ib() <NEW_LINE> start_date = attr.ib() <NEW_LINE> samples = attr.ib(factory=list) <NEW_LINE> assays = attr.ib(factory=list) <NEW_LINE> collaborators = attr.ib(factory=list)
Class representing a mongo record for a trial. Arguments: object {[type]} -- [description]
6259904e63d6d428bbee3c20
class TestPlayer_0opponents: <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.payoffs = [0, 1, -1] <NEW_LINE> self.player = Player(self.payoffs) <NEW_LINE> self.best_response_action = 1 <NEW_LINE> self.dominated_actions = [0, 2] <NEW_LINE> <DEDENT> def test_delete_action(self): <NEW_LINE> <INDENT> N = self...
Test for trivial Player with no opponent player
6259904e3cc13d1c6d466b8e
class Custom20Pagination(PageNumberPagination): <NEW_LINE> <INDENT> page_size = 20 <NEW_LINE> page_size_query_param = 'page_size' <NEW_LINE> max_page_size = 20 <NEW_LINE> def get_paginated_response(self, data): <NEW_LINE> <INDENT> return Response({ 'links': {'next': self.get_next_link(), 'previous': self.get_previous_l...
A pagination class that paginates every 20 objects.
6259904e82261d6c527308f1
class NeoModelBase(type(dj_models.Model)): <NEW_LINE> <INDENT> meta_additions = ['has_own_index'] <NEW_LINE> def __init__(cls, name, bases, dct): <NEW_LINE> <INDENT> super(NeoModelBase, cls).__init__(name, bases, dct) <NEW_LINE> cls._creation_counter = 0 <NEW_LINE> <DEDENT> def __new__(cls, name, bases, attrs): <NEW_LI...
Model metaclass that adds creation counters to models, a hook for adding custom "class Meta" style options to NeoModels beyond those supported by Django, and method transactionality.
6259904e26068e7796d4dd99
class Team(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'team_info' <NEW_LINE> team_id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> team_name = db.Column(db.String(5), nullable=False) <NEW_LINE> team_city = db.Column(db.String(20)) <NEW_LINE> team_year = db.Column(db.Integer) <NEW_LINE> pl...
球队类
6259904ebe383301e0254c70
class TagDefineShape3(TagDefineShape2): <NEW_LINE> <INDENT> TYPE = 32 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(TagDefineShape3, self).__init__() <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "DefineShape3" <NEW_LINE> <DEDENT> @property <NEW_LINE> def type(self): <NE...
DefineShape3 extends the capabilities of DefineShape2 by extending all of the RGB color fields to support RGBA with opacity information. The minimum file format version is SWF 3.
6259904e287bf620b627303f
class GriddedField4(GriddedField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(GriddedField4, self).__init__(4, *args, **kwargs)
GriddedField with 4 dimensions.
6259904e3eb6a72ae038bab1
class MsearchDevice(Msearch): <NEW_LINE> <INDENT> _timestamp_first_request = 0 <NEW_LINE> _devicelist = [] <NEW_LINE> _count = -1 <NEW_LINE> _retry = 0 <NEW_LINE> _verbose = False <NEW_LINE> def __init__(self, verbose=False): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._verbose = verbose <NEW_LINE> <DEDENT> ...
Search for the next device on the network. Because of stateless communication of multicast it may be possible that requests are lost. To improve reliability requests are send more than one time. Most devices will response on every request but we make the responses unique. Only the first response is reported.
6259904ed53ae8145f9198b8
class GrapesJsField(forms.CharField): <NEW_LINE> <INDENT> widget = GrapesJsWidget <NEW_LINE> def __init__(self, default_html=GRAPESJS_DEFAULT_HTML, html_name_init_conf=REDACTOR_CONFIG[BASE], apply_django_tag=False, validate_tags=False, template_choices=None, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args,...
Form field with support grapesjs.
6259904e45492302aabfd929
class WinkDevice(Entity): <NEW_LINE> <INDENT> def __init__(self, wink): <NEW_LINE> <INDENT> from pubnub import Pubnub <NEW_LINE> self.wink = wink <NEW_LINE> self._battery = self.wink.battery_level <NEW_LINE> if self.wink.pubnub_channel in CHANNELS: <NEW_LINE> <INDENT> pubnub = Pubnub("N/A", self.wink.pubnub_key, ssl_on...
Represents a base Wink device.
6259904e29b78933be26aaed
class TBTAFFilterType(object): <NEW_LINE> <INDENT> IN="Inclusion" <NEW_LINE> OUT="Exclusion"
Simple enumeration to describe a logical operator for filtering a given query
6259904e71ff763f4b5e8bfd
class ResourceNotFound(Exception): <NEW_LINE> <INDENT> pass
If target resource is not found, it is raised.
6259904eb57a9660fecd2ed3
class Gre(Resource): <NEW_LINE> <INDENT> def __init__(self, gres): <NEW_LINE> <INDENT> super(Gre, self).__init__(gres) <NEW_LINE> self._meta_data['required_creation_parameters'].update(('partition',)) <NEW_LINE> self._meta_data['required_json_kind'] = 'tm:net:tunnels:gre:grestate'
BIG-IP® tunnels GRE sub-collection resource
6259904e1f037a2d8b9e5297
class AssignmentError(Error): <NEW_LINE> <INDENT> pass
Raised when assignment fails.
6259904e21a7993f00c673bf
class PptFile(anydoc.AnyDoc): <NEW_LINE> <INDENT> def __init__(self, isPPS, fp, isBin=None, **kwargs): <NEW_LINE> <INDENT> anydoc.AnyDoc.__init__(self, fp, isBin, **kwargs) <NEW_LINE> self.pps = isPPS
power point document
6259904e3c8af77a43b68969
@pytest.mark.django_db <NEW_LINE> class BasePostsApiV1(object): <NEW_LINE> <INDENT> @pytest.fixture <NEW_LINE> def setup_test(self, request): <NEW_LINE> <INDENT> self.user = User.objects.create() <NEW_LINE> self.profile = Profile.objects.create( website='http://127.0.0.1:8000', user=self.user, ) <NEW_LINE> self.post = ...
Base Test module for posts API
6259904edc8b845886d54a14
class AbstractAlgorithm: <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_owner( cls ): <NEW_LINE> <INDENT> raise NotImplementedError( "abstract" ) <NEW_LINE> <DEDENT> def __init__( self, function: Callable, argskwargs: ArgsKwargs = ArgsKwargs.EMPTY, name: str = None, ): <NEW_LINE> <INDENT> assert inspect.isfunction...
The concrete varieties of this class serve as function annotations denoting which type of algorithm a command accepts. Other than that, such annotations may be considered synonymous with `Callable`. These concrete versions are defined in `AlgorithmCollection.__init__`. Instances of this class simply wrap a function.
6259904ed6c5a102081e3574
class PlainTextField(Field): <NEW_LINE> <INDENT> widget = PlainTextWidget() <NEW_LINE> def validate(self, form, extra_validators=()): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def process(self, formdata, data=None): <NEW_LINE> <INDENT> self.data = self.default <NEW_LINE> return self.default
A field for displaying plain text. This field's value cannot be changed and always uses the default.
6259904e82261d6c527308f2
class Comparitor(): <NEW_LINE> <INDENT> def __init__(self, model): <NEW_LINE> <INDENT> self._model = model <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def describe(): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def order(): <NEW_LINE> <INDENT> raise NotImplementedError(...
Still a work in progress as I think about what we need to support: currently the business end of how to get "output" is not specified in this base class. :param model: An instance of :class:`analysis.Model` from which we can obtain data and settings.
6259904e379a373c97d9a482
class TestIndependentLearnersManyAgents(BaseTestMultiAgentModel): <NEW_LINE> <INDENT> nb_agents = _HIGH_NB_AGENTS <NEW_LINE> multiagent_model_class = IndependentLearners <NEW_LINE> expected_state = MultiAgentTestEnv._DEFAULT_STATE
Test independent learners, many agents.
6259904ed6c5a102081e3575
class others_keyword(parser.keyword): <NEW_LINE> <INDENT> def __init__(self, sString): <NEW_LINE> <INDENT> parser.keyword.__init__(self, sString)
unique_id = entity_name_list : others_keyword
6259904ed53ae8145f9198ba
class Owner(ndb.Model): <NEW_LINE> <INDENT> id = ndb.StringProperty() <NEW_LINE> email = ndb.StringProperty() <NEW_LINE> nickname = ndb.StringProperty() <NEW_LINE> @classmethod <NEW_LINE> def exists(cls, user=None, email=None): <NEW_LINE> <INDENT> if not user: <NEW_LINE> <INDENT> user = users.get_current_user() <NEW_LI...
Represents an owner of a vessel.
6259904e8a43f66fc4bf35ef
class Household: <NEW_LINE> <INDENT> def __init__(self, home_id): <NEW_LINE> <INDENT> self.id = home_id <NEW_LINE> self.module_use_flgas = RecommendModulesUseFlags() <NEW_LINE> <DEDENT> def get_smart_meter(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_ac_log(self, start_time=None, end_time=None): <NEW_LIN...
家庭はデータの固まりをいくつか持つ DataFormat型のモデルをいくつか保持するものが家庭 DataFormat型のモデルというのがつまりDBの各テーブルにあたる データ形式 時系列データ TimeSeriesDataFormat -> SmartMeterDataFormat 操作ログデータ LogDataFormat -> ApplianceLogDataFormat -> ACLogDataFormat 内容実行二択データ TwoSelectionsDataFormat -> IsDoneDataFormat MetaDataFormat # 家族構成情報 # 住まい地域情報 2016-10-06 現状、以下のPr...
6259904ee76e3b2f99fd9e58
class LearningAgent(Agent): <NEW_LINE> <INDENT> def __init__(self, env, learning=False, epsilon=1, Gamma=1,alpha=0.7,action=None): <NEW_LINE> <INDENT> super(LearningAgent, self).__init__(env) <NEW_LINE> self.planner = RoutePlanner(self.env, self) <NEW_LINE> self.valid_actions = self.env.valid_actions <NEW_LINE> self.le...
An agent that learns to drive in the Smartcab world. This is the object you will be modifying.
6259904eb57a9660fecd2ed4