Giter Club home page Giter Club logo

personal-hugo-site's Introduction

Peter Baumgartner's Personal Site

Built with Hugo. Available at http://pmbaumgartner.github.io. Related Notebooks at https://github.com/pmbaumgartner/binder-notebooks.

To run locally:

hugo server

Helpful Flags:

  • --disableFastRender render to disk rather than memory (use public folder)
  • -D build files tagged with draft: true
  • --cleanDestinationDir clean build folder (helpful if files are renamed to remove duplicates)

To load theme:

git submodule update --init --recursive

personal-hugo-site's People

Contributors

pmbaumgartner avatar

Watchers

 avatar  avatar

personal-hugo-site's Issues

Feedback on Just Enough Cython

I learned about your blog post on Cython from the recent Python Bytes episode that covered it. It is a really nice write up and makes doing a little bit of Cython really accessible.

I just wanted to suggest one other point that I didn't see mentioned in your post -- often working with numpy is good enough without reaching for Cython. For example, for the case you considered, I tried this alternate version:

import numpy
from numpy.typing import NDArray

def count_increases(depths: NDArray[np.int32]) -> int:
    return np.sum(depths[1:] > depths[:-1])

For my testing on 5,000 item lists/arrays, I got:

case Python Cythonized Python Typed Cython Numpy Cython Numpy Python
Time (us) 201 94 23 3.8 9.6

So the Cythonized solution is the best but is only about a factor of 2.5 faster than calling standard numpy functions from Python. So there might be an extra point to consider in your conditions for when to use Cython -- has the code already been optimized to use numpy in a performant way? The cases that would benefit most from Cython might be ones where you need to operate on arrays with a little bit of unusual logic not likely to be captured by numpy functions.

date extraction

@pmbaumgartner
Is there a way to write a rule based system to catch things like start/end dates from a contract text. Here are a few real examples. I am bolding the date entities which I want spacy to automatically detect. If you have other ideas different than spacy that is also OK!

  1. The initial term of this Lease shall be for a period of Five (5) years commencing on
    February 1, 2012, (the “Lease Commencement Date”) and expiring on January 31, 2017
    (the “Initial Lease Term”).

  2. Term: One (1) year commencing January 1, 2007 ("Commencement Date") and ending
    December 31, 2007 ("Expiration Date").

  3. This Lease Agreement is entered into for term of 15 years, beginning January 1, 2014 and ending on December 31, 2028.

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.