Git Product home page Git Product logo

Comments (2)

fortuna avatar fortuna commented on July 26, 2024

Reference for types: https://docs.censoredplanet.org/dns.html

For inputs, we can define some types like BlockpagesEntry or ResultsEntry for blockpages.json or results.json, for example.
Then we can think of names for the intermediate data.

from censoredplanet-analysis.

fortuna avatar fortuna commented on July 26, 2024

I talked to @ohnorobo. We'll update the pipeline to remove the redundant duplication of the observations, which should significantly improve the pipeline performance and address some of the modeling concerns. She described the change in a TODO here:

# TODO we want to change the structure here
# Currently we're CoGrouping over two elements using a (date, received_ip) key
# A row with flattened received ips like
# {"ip": "1.2.3.4",
# "date": "2021-01-01"
# "domain": "example.com"
# "roundtrip_id": "abc"
# "received" [{"ip": "5.6.7.8"}]
# }
# and metadata like
# {"ip": "5.6.7.8", "date":"2021-01-01", "asn": 123}
#
# But in the future we want to have three pieces
# 1. The inital row (without flattening the received ips) with a roundtrip_id
# 2. Information on a single received ip like:
# {"received_ip": "5.6.7.8", "date": "2021-01-01", "roundtrip_id": "abc"}
# 3. Metadata as above.
#
# Then we can CoGroup 2 and 3 together by (date, received_ip)
# and then Group them with 1 by roundtrip_id
# and add metadata to the appropriate answers
# This way we avoid having to multiply rows by their number of received ips

from censoredplanet-analysis.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.