All Projects → vankesteren → tensorsem

vankesteren / tensorsem

Licence: GPL-3.0 License
Structural Equation Modeling using Torch

Programming Languages

python
139335 projects - #7 most used programming language
r
7636 projects

Projects that are alternatives of or similar to tensorsem

gan-reverser
Reversing GAN image generation for similarity search and error/artifact fixing
Stars: ✭ 13 (-63.89%)
Mutual labels:  torch
torchlib
Data structures, algorithms, and ML/NLP tools in Lua.
Stars: ✭ 22 (-38.89%)
Mutual labels:  torch
Fake-News-Detection-Project
Fake News Detection Final Year College Project with Project Report, PPT, Code, Research Paper and Documents.
Stars: ✭ 16 (-55.56%)
Mutual labels:  sem
deep-learning-platforms
deep-learning platforms,framework,data(深度学习平台、框架、资料)
Stars: ✭ 17 (-52.78%)
Mutual labels:  torch
Cross-View-Gait-Based-Human-Identification-with-Deep-CNNs
Code for 2016 TPAMI(IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE) A Comprehensive Study on Cross-View Gait Based Human Identification with Deep CNNs
Stars: ✭ 21 (-41.67%)
Mutual labels:  torch
FlowNetTorch
Torch implementation of Fischer et al. FlowNet training code
Stars: ✭ 27 (-25%)
Mutual labels:  torch
sentence2vec
Deep sentence embedding using Sequence to Sequence learning
Stars: ✭ 23 (-36.11%)
Mutual labels:  torch
Neural-Zoom
Infinite Zoom For Style Transfer
Stars: ✭ 34 (-5.56%)
Mutual labels:  torch
DeepCD
[ICCV17] DeepCD: Learning Deep Complementary Descriptors for Patch Representations
Stars: ✭ 39 (+8.33%)
Mutual labels:  torch
neuralBlack
A Multi-Class Brain Tumor Classifier using Convolutional Neural Network with 99% Accuracy achieved by applying the method of Transfer Learning using Python and Pytorch Deep Learning Framework
Stars: ✭ 36 (+0%)
Mutual labels:  torch
torch-pitch-shift
Pitch-shift audio clips quickly with PyTorch (CUDA supported)! Additional utilities for searching efficient transformations are included.
Stars: ✭ 70 (+94.44%)
Mutual labels:  torch
neural-vqa-attention
❓ Attention-based Visual Question Answering in Torch
Stars: ✭ 96 (+166.67%)
Mutual labels:  torch
pytest-pytorch
pytest plugin for a better developer experience when working with the PyTorch test suite
Stars: ✭ 36 (+0%)
Mutual labels:  torch
Jetson-Nano-image
Jetson Nano image with deep learning frameworks
Stars: ✭ 46 (+27.78%)
Mutual labels:  torch
torch-lrcn
An implementation of the LRCN in Torch
Stars: ✭ 85 (+136.11%)
Mutual labels:  torch
torch-dataframe
Utility class to manipulate dataset from CSV file
Stars: ✭ 67 (+86.11%)
Mutual labels:  torch
bittensor
Internet-scale Neural Networks
Stars: ✭ 97 (+169.44%)
Mutual labels:  torch
DeepClassifier
DeepClassifier is aimed at building general text classification model library.It's easy and user-friendly to build any text classification task.
Stars: ✭ 25 (-30.56%)
Mutual labels:  torch
resnet.torch
an updated version of fb.resnet.torch with many changes.
Stars: ✭ 35 (-2.78%)
Mutual labels:  torch
TorchGA
Train PyTorch Models using the Genetic Algorithm with PyGAD
Stars: ✭ 47 (+30.56%)
Mutual labels:  torch


DOI

Structural Equation Modeling using Torch


Description

An R and python package for structural equation modeling using Torch. This package is meant for researchers who know their way around SEM, Torch, and lavaan. Structural equation modeling is implemented as a fully functional torch.nn module. A short example optimization loop would be:

import tensorsem as ts
model = ts.StructuralEquationModel(opt = opts)  # opts are of class SemOptions
optim = torch.optim.Adam(model.parameters())  # init the optimizer
for epoch in range(1000):
    optim.zero_grad()  # reset the gradients of the parameters
    Sigma = model()  # compute the model-implied covariance matrix
    loss = ts.mvn_negloglik(dat, Sigma)  # compute the negative log-likelihood, dat tensor should exist
    loss.backward()  # compute the gradients and store them in the parameter tensors
    optim.step()  # take a step in the negative gradient direction using adam

Installation

To install the latest version of tensorsem, run the following:

  1. Install the R interface package from this repository:
    remotes::install_github("vankesteren/tensorsem")
  2. Install pytorch on your system. Use the pytorch website to do this. For example, for a windows pip cpu version, use:
    pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
  3. Install the tensorsem python package from this repository.
    pip install https://github.com/vankesteren/tensorsem/archive/master.zip
  4. (Optional) Install pandas and matplotlib for plotting and parameter storing
    pip install matplotlib pandas

Usage

See the example directory for a full usage example, estimating the Holzinger-Swineford model using maximum likelihood, unweighted least squares, and diagonally weighted least squares.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].