def run_augment_test():
"""Augment via REST"""
# Query result
#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This snippet may be used after installing the following libraries: | |
# (1) OpenDP library with DP-PCA | |
# - reference: https://test.pypi.org/project/opendp/0.9.0.dev20231221001/ | |
# | |
pip install -i https://test.pypi.org/simple/ opendp==0.9.0.dev20231221001 | |
# (2) scikit-learn (includes numpy) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<nav class="navbar navbar-light fixed-top"> | |
<div class="navbar-text ml-auto d-flex"> | |
<button class="btn btn-sm btn-outline-success" | |
@click="sliderStatus = !sliderStatus"> | |
<i class="fas fa-dollar-sign"></i></button> | |
<div class="dropdown ml-2" v-if="cart.length>0"> | |
<button class="btn btn-success btn-sm dropdown-toggle" | |
id="cartDropdown" data-toggle="dropdown" | |
aria-haspopup="true" aria-expanded="false"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<nav class="navbar navbar-light fixed-top"> | |
<div class="navbar-text ml-auto d-flex"> | |
<button class="btn btn-sm btn-outline-success" | |
@click="sliderStatus = !sliderStatus"> | |
<i class="fas fa-dollar-sign"></i></button> | |
<div class="dropdown ml-2" v-if="cart.length>0"> | |
<button class="btn btn-success btn-sm dropdown-toggle" | |
id="cartDropdown" data-toggle="dropdown" | |
aria-haspopup="true" aria-expanded="false"> |
Code to get the D3M temp directory accessible by TA2/TA2
from os.path import join
from tworaven_apps.configurations.utils import \
(get_latest_d3m_config,)
d3m_config = get_latest_d3m_config()
if not d3m_config:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""python3 script to check data files | |
For use with New Haven Crime Files on Dataverse: | |
- https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/18J4ZW | |
""" | |
import json | |
from os.path import isfile | |
import sys | |
# -------------------------------------------- | |
# SET YOUR DATA DIRECTORY HERE CONTAINING these files: |
Specifically, before seeing the app in action, I thought of these as two distinct parts:
- (a) Saving/Retrieving queries to the database
- (b) Running queries and storing the results in Dataverse
- Run mongo query
- Write result to a temporary file
- Push the file and a related readme file to Dataverse
- Publish the Dataset, allowing the new file to be publicly viewable
data
- required key with a list of lists
from datetime import datetime
import json
import requests # http://docs.python-requests.org/en/master/
# --------------------------------------------------
# Update the 4 params below to run this code
# --------------------------------------------------
dataverse_server = 'https://your dataverse server' # no trailing slash
api_key = 'api key'
NewerOlder