Commit 847d8723 authored by Martin Húsek's avatar Martin Húsek
Browse files

feat: bachelor thesis code (lbfgs, NAdam)

parent 9a98e50d
Loading
Loading
Loading
Loading

.vscode/launch.json

0 → 100644
+24 −0
Original line number Diff line number Diff line
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Remote Attach",
            "type": "debugpy",
            "request": "attach",
            "justMyCode": false,
            "connect": {
                "host": "erinys02.fi.muni.cz",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}",
                    "remoteRoot": "."
                }
            ]
        }
    ]
}
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
# @package _global_
defaults:
  - patrolling/atm_network: base
  - _self_

metadata:
  tags:
    - atm_network
  description: |
    Patrolling in a Montreal ATM network graph.

trainer:
  steps: 200
  optimizer:
    lr: 0.15
  

module:

  attack_probs:
    path_merge_threshold: 0.1

  agent:

    memory:
      default_mem: 4
 No newline at end of file
+28 −0
Original line number Diff line number Diff line
# @package _global_
defaults:
  - /module/patrolling: base
  - _self_


metadata:
  project: atm_network
  tags: ???


module:

  attack_probs:
    path_merge_threshold: 0.1

  agent:
    graph:
      _target_: regstar.modules.patrolling.graph.PatrollingATMNetworkGraph
      default_blindness: 0.0


    strategy:
      rounding_threshold: 0.001

    memory:
      _target_: regstar.modules.patrolling.graph.PatrollingATMNetworkMemory
      default_mem: ???
 No newline at end of file
+210 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <name>Banks and ATM in Montreal</name>
    <Style id="icon-1899-0288D1-nodesc-normal">
      <IconStyle>
        <color>ffd18802</color>
        <scale>1</scale>
        <Icon>
          <href>https://www.gstatic.com/mapspro/images/stock/503-wht-blank_maps.png</href>
        </Icon>
        <hotSpot x="32" xunits="pixels" y="64" yunits="insetPixels"/>
      </IconStyle>
      <LabelStyle>
        <scale>0</scale>
      </LabelStyle>
      <BalloonStyle>
        <text><![CDATA[<h3>$[name]</h3>]]></text>
      </BalloonStyle>
    </Style>
    <Style id="icon-1899-0288D1-nodesc-highlight">
      <IconStyle>
        <color>ffd18802</color>
        <scale>1</scale>
        <Icon>
          <href>https://www.gstatic.com/mapspro/images/stock/503-wht-blank_maps.png</href>
        </Icon>
        <hotSpot x="32" xunits="pixels" y="64" yunits="insetPixels"/>
      </IconStyle>
      <LabelStyle>
        <scale>1</scale>
      </LabelStyle>
      <BalloonStyle>
        <text><![CDATA[<h3>$[name]</h3>]]></text>
      </BalloonStyle>
    </Style>
    <StyleMap id="icon-1899-0288D1-nodesc">
      <Pair>
        <key>normal</key>
        <styleUrl>#icon-1899-0288D1-nodesc-normal</styleUrl>
      </Pair>
      <Pair>
        <key>highlight</key>
        <styleUrl>#icon-1899-0288D1-nodesc-highlight</styleUrl>
      </Pair>
    </StyleMap>
    <Placemark>
      <name>ATM - Banque Scotia</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5608752,45.5015478,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>TD Bank ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5633686,45.5023023,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>RBC Royal Bank ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.57882,45.495308,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>Deutsche Bank Securities</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5710102,45.4973778,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>RBC Royal Bank ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5802715,45.4840155,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>Costco Wholesale</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.553433,45.4859923,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>HSBC Bank</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5853004,45.4899901,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>Mellon Bank Na</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5655451,45.5030513,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>Ubs Bank Canada</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5716928,45.502005,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>BMO Banque de Montréal</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.6454236,45.4913082,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>Manulife Bank</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.6246,45.465649,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>ATM 4th Floor</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.6386318,45.459057,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>RBC Royal Bank ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.5349539,45.5486183,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>BMO Bank of Montreal ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.602537,45.5821992,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.7356223,45.4529986,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>RBC Royal Bank ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.7264079,45.487621,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>Montréal-Pierre Elliott Trudeau International Airport</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.7454814,45.4656851,0
        </coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <name>RBC Royal Bank ATM</name>
      <styleUrl>#icon-1899-0288D1-nodesc</styleUrl>
      <Point>
        <coordinates>
          -73.7780915,45.5049478,0
        </coordinates>
      </Point>
    </Placemark>
  </Document>
</kml>
 No newline at end of file
+4 −2
Original line number Diff line number Diff line
@@ -3,9 +3,11 @@ defaults:
  - /logging/handlers:
      - drive
      - stream
  #- /trainer/optimizer: lbfgs
  #- /trainer/optimizer: nadam
  - /trainer/optimizer: adam
  - /trainer/callbacks:
      - gradient_noise_basic_polynomial
  #- /trainer/callbacks:
  #    - gradient_noise_basic_polynomial

logging:
  handlers:
Loading