$ 2024-10-23

Weekly Logs

Agenda

Date: 2024-10-23; Time: 00:18

  1. Conference paper: Update my methodology:

    • Edit: Phase 1 Data Collection
      • 1. Compiling Visually Descriptive Materials
        • Explain the primary documents and where I got them
        • Explain the secondary documents and why I reference them
      • 2. Developing a Object-Based Classification Guide (OB-CG)
        • Add the certainty/uncertainty measurement
        • Add the SEGEPLAN's Panzos georefs
        • Use basic shapes as settlement pins OR use outline masks as settlement identifiers
          • Note: For the CNN, it might be a better idea to literally outline everything I see rather than just put a pin on it because it will give the CNN a better understanding of that object's spatial distribution across the land
            • So, I can mess with the fill in opacity to represebt the certainty/uncerainty value? If so, I can keep those as vectors and rasterize them in Python
    • Redo: Phase 2 Data Transformation
      • Follow these steps
        • In Google Earth Pro
          • Prep the mapping area with raster images
            • Choose which time (2006, 2007, or 2010)
            • Extend to Panzos (to only high-res)
          • Identify observation features with my OB-CG
        • In Python
          • Convert my KMZ files into shape files
          • Prep my dataset for data modelling
  2. Thesis design: Reorganize My Ref Tracker

    • Maybe making subtrackers for each purpose: Empirics, Methods, Theory
      • Then, I can better identify which sources will be used for what and how to group sources within each section
      • I'm thinking that, for each source, I can add metadata as YAML:
        • Purpose section (i.e. empirics, methods, theory)
        • Primary/secondary status
        • Time scope
        • Geographic scope
        • Journal tags
        • My tags
        • URL source

Date: 2024-11-03; Time: 20:01

Okay, I'm still working with the same agenda from last week so I'll just keep working here:

Recap


Methodological Notes

Date: 2024-10-23; Time: 17:14

Found a couple of links for learning OOP (object-oriented programming) in Python

Here are my notes:

What is OOP?

Build PyTorch CNN - Object Oriented Neural Networks - deeplizard
Here are my notes:

What are Objects?
What are Classes?
What are Instances?
Pros of OOP?
Building NNs with PyTorch
import torch.nn as nn
What are Layers?
  1. A transformation ("code")
    • Aka behaviours
  2. A collection of weights ("data")
    • Aka properties

Okay, that's enough notes, I'm gonna focus on my own research again.

Date: 2024-10-23; Time: 20:08

I found a how-to for preparing KMZ files in python: A Beginner’s Guide to Handling Geospatial Data Using Python | by NOUHAILA DRAIDAR | Medium

Also, here's the API reference of geopandas: API reference — GeoPandas 1.0.1+0.g747d66e.dirty documentation

Date: 2024-10-28; Time: 16:20

So, Bahar said I would have to incorporate probability when coding the uncertainty value for each observation data/object. Uhhh still not sure how to do that but when I look up how to do that I run into the term polymorphism.

Turns out that any programming language that can accomodate for OOP must be polymorphic. Seems like Java is most commonly used for this stuff or other languages but I'll stick to Python.

I found this for learning polymorphism in python: What is Polymorphism in Python?
Here are my notes:

What is Polymorphism?
1. Operator Polymorphism
2. Function Polymorphism
3. Class and Method Polymorphism

Date: 2024-11-05; Time: 20:50

I really hate having to manually georef all my raster images in GEPro. I do not want to do that again. I give in, I'm gonna use ArcGIS for that:

Georeferencing tools—ArcGIS Pro | Documentation

I'm using bodies of water as my control points to match up all the georef images together. I did it all manually last time but that meant that some of the rivers or water borders didn't match up all the way. Okay technically you could do it in QGIS too...so its still a free thing...

Date: 2024-11-05; Time: 23:55

Right now, I will not redo my georef technique in phase 2. I will focus on redoing my observation data. When I write it in the Conference working paper, I can just disucss how I can improve my georef technique by using bodies of water as the control points.

I also need to write up my OOP technique for phase 3. I need to make a UML diagram!

UML Diagrams Full Course (Unified Modeling Language)
Here are my notes:

What is UML?

Unified Modelling Language

UML Diagram Types:
  1. Structural diagrams:
    a. Composite structure
    b. Deployment
    c. Package
    d. Profile
    e. Class
    f. Object
    g. Component
  2. Behavioural diagrams:
    a. Activity
    b. Use case
    c. State machine
    d. Interaction
    d.1 Sequence
    d.2 Communication
    d.3 Interaction overview
    d.4 Timing
Class diagram

3 Main types of relationships

  1. Association
    • Represents instances of types
    • Ex: a person works for a company or a company has multiple offices
  2. Inheritance
    • Corresponds directly to inheritence in object-oriented deisgn
  3. Aggregation
    • Form of object composition

How to write a class

Screenshot 2024-11-06 003051.png

  1. The top partition, the name of the class
  2. The next partition, attributes followed by their type
  3. The bottom parition, methods followed by the type that they can return after the the column in the methods signature

What are the - and +?

In each method, every parameter can be described in its direction

Object diagram
How to interpret UML diagrams?
3 Levels of specification
  1. Conceptual perspective
    • Diagrams are interpreted as describing entities of the real world
    • Considered language independent
  2. Specification perspective
    • Diagrams are interpreted as describing abstractions of software or compontents with specification and interfaces
    • But without any reference to a specific implementation
  3. Implementation perspective
    • Diagrams are interpreted as descriptions of a specific implementation in a programming technology or lamguage
    • So, you can choose to depict the actual software implementation
6 Relationships between classes

Screenshot 2024-11-06 004400.png

  1. Association = a connection between classes
  2. Inheritance = a relationship between a parent class and its descendants
    • Hallow arrow points to parent class
    • If descendents inherits from an abstract class, the name of the parent class is italicized
    • Ex, Shape <-- Square, Rectangle, Circle
      • All these classes are connected and point to 'Shape'
  3. Realization = relationships between an interface and objects
    • The object implements the interface
    • Ex, Owner: +buy(property) <-- Person: -tangible & Owner: +buy(property) <-- Corporation: -intangible
      • These are two classes with two separate connections to 'Owner'
  4. Dependency = when an object of one classes uses an object of another class in its method
    • Special cas eof association of two classes
    • Where changes in one class will inexorably entail changes in the other
    • Ex, Person: +hasRead(book): boolean --> Book
  5. Aggregation = when one class is a composite part of another
    • Ex, a programmer's 'work station' can consist of a chair, desk, computer, and fan or
      • When you delete the 'work station' class, you can still have all these classes but on their own
      • They no longer form an aggregate class which is 'work station'
    • Ex, Class workspace <-- Table, chair, PC, fan
      • All these classes are connected and point to 'Class workspace'
  6. Composition = type of aggregation where the aggregate class is destroyed will also destroy the classes
    • Ex, our bodies are made up of organs but those organs can't function along without being in the body

Okay, I think that's everything I need to know for now. Gotta draw it.


Reflective Notes

Date: 2024-11-06; Time: 01:18

My friend, June, gave me his CS148 notes on OOP! Awesome.

Also my friend, Dom, helped me scribble out my observatiom data as objects. He was the one that told me I should make a UML diagram.

I will definately not be ready with my data fully modelled for the conference this end of November. So...the paper is going to have to explain my conceptual data model at least. I need to redo my observation data so that all the placemarkers are polygons rather than some of them being points. I'm also extending my study area into Panzos so yea that has to be done...

Ahh...all of this has to be reexecuted and rewritten...

...I sorta put alot on myself.

I'm really nervous to present. One, this is a half-baked idea. Two, I'm speedrunning computer science. Three, I have stage fright. Four, it looks like other paper presenters are at least PhD students....uhh...


Prev: $ 2024-10-18
Next: $ 2024-11-11

#notes/learn/OOP
#notes/learn/python/pytorch
#notes/learn/python/geopandas
#notes/learn/python/polymorphism
#notes/learn/UML

#tools/software/ArcGIS

#methods/gis/georeferences/control-points