Giter VIP home page Giter VIP logo

ptensor's Introduction

pTensor

pTensor is a wrapper around the PALISADE library, which is a general-purpose lattice cryptography library. pTensor composes relevant functions from PALISADE to create a numpy-like interface for use in encrypted machine learning.

Features

  • Creation of pTensors from either ciphertexts or plaintext messages

    • empty tensor
    • from cipher and cipher's transpose
    • cipher
  • Encryption

    • we also take the encrypted transpose to potentially save us from the expensive operation
  • Decryption

  • Addition

  • Subtraction

  • Multiplication

  • Dot product

    • Supported between Matrix-vector and vector-vector
  • Sum

    • all reduce or reducing across specified axes
  • Transpose

    • expensive encrypted transpose. We attempt to circumvent this by precomputing the transpose in plaintext if possible
  • plainT

    • plaintext transpose
  • Identity matrix

  • Random tensor

    • uniform
    • normal
  • shuffling

    • this is comprised of 2 parts: shuffling n number of (user specified) folds if given messages, then having an adapter that feeds the data.
  • hstack

    • re: expensive transpose, we do a vstack on the transpose to get the resulting transpose without actually doing the entire thing
  • vstack

    • re: expensive transpose, we do a hstack on the transpose to get the resulting transpose without actually doing the entire thing

Trivia

This library is pronounced Tensor as the "p" is silent.

ptensor's People

Contributors

ianqs avatar

Watchers

 avatar  avatar

ptensor's Issues

Blog Post 2

  1. CKKS internals
  2. SHE and LeveledShe
  3. EvalSumKeyGen and EvalMultKeyGen
  4. EvalAtIndexKeyGen
  5. Ciphertext Refreshing in-depth as in second post outline

Diag

Emulate Numpy diag

Extract a diagonal or construct a diagonal array.

Include testing. Progress so far listed below

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.