Skip to main content

A small example package

Project description

DNA-SE: Towards Deep Neural-Net Assisted Semiparametric Estimation

DNA-SE is an approach for solving the parameter of interest in semi-parametric. We give 3 examples about missing not at random, sensitivity analysis in causal inference and transfer learning. DNA-SE proposes a method using deep neural network to estimate or calculate the parameters with the solution given by integral equation. Also it has a iterative alternating procedure with Monte Carlo integration and a new loss function. Furthermore, we support a python package with pytorch to use our algorithm directly.

Setup

For the requirments, the DNA-SE methods depend on python>=3.7, torch>=1.12, time package.

Using the following command in Python to install:

conda create -n --envname python>=3.7
conda activate --envname
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia

Figures and Networks

For our method, we choose simple neural networks and prove it is useful to solve integral equations. And we suppose the bi-level algorithm which is shown in

Usage

The specific three examples for MNAR, Sensitivity analysis and Transfer learning, we give the codes in mnar.py, sensitivity_simu.py and transfer_learning.py which are available for you to reproduce our results.

Also in order to use our algorithm more easily, we give a simple package in python and you can check the file model.

For the usage of this package, you should first download the github repositories into your server. The command of this is:

git clone https://github.com/liuqs111/DNA-SE.git

Then enter the path of model in this file

cd model

And users can use the function by running the command below in command line:

from mymodel import model_b_training

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dna_se-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

DNA_SE-0.0.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file dna_se-0.0.4.tar.gz.

File metadata

  • Download URL: dna_se-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for dna_se-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c4be38dd58a6406a860485f38e7b5ad2de7ef9e5eb6b61791139a5e699fc64bb
MD5 1c97d4a9286fbc28e2360d9bf4b4c2e8
BLAKE2b-256 30fc84dd638da2531d3ee052cdc28a707eed65fa1b519c872b981aec93f5cba3

See more details on using hashes here.

File details

Details for the file DNA_SE-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: DNA_SE-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for DNA_SE-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1f276d7420b18f8f78e1dd24d86787770047faab3b6c75bef8328c4663e3e8
MD5 24dfa7c5807a987b0292acd9d0c0a326
BLAKE2b-256 77f58ddcf4b68c1e8be9533563867825f1ad2ba1eaba4cb9480ffbbabe34829d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page