Freelance: dcnielsen
Condividi:
Segnala Partecipazione

Encode/Decode

Simple solution with command line graphics and optional user inputs. Could not capture all the encoded output in a picture because the hot encoded outputs are really long (26x28 for alphabetical and even more for cities). Let me know if more proof of work is needed.

Proposta in Concorso #3 per                                                 python script to convert data

Bacheca pubblica per chiarimenti

  • afterhourstech
    Titolare del Concorso
    • 5 anni fa

    ok hang tight, save your code, I may come back and buy it if I'm not able to make some tweaks on the other one.

    • 5 anni fa
    1. dcnielsen
      dcnielsen
      • 5 anni fa

      Okay, just send me a pm if you need it.

      • 5 anni fa
  • dcnielsen
    dcnielsen
    • 5 anni fa

    Also, just confirmed it works with python 3.4.3

    • 5 anni fa
  • afterhourstech
    Titolare del Concorso
    • 5 anni fa

    hi can you tell me how configurable the code is? I already awarded this to someone else but the code I got is an unmaintanable mess

    • 5 anni fa
    1. dcnielsen
      dcnielsen
      • 5 anni fa

      I used csv, sys, and argparse modules and I wrote it with python 2.7.6 (probably could make it run on 3+). I prefer as vanilla python as I can get for compatibility and maintainability (so no pandas or installing modules). For encode, I quickly read over the input file to get the row counts and lists of needed values, then I encode directly from the input file to the output file. The hot encodes are callable functions. I did this reduce the amount of memory needed (the full output file is over 100 gigs). The decode works pretty much the same except decodes.

      As for configuration, you can specify input and output files. You could likely add more functions easily with argparse.

      • 5 anni fa

Mostra altri commenti In elaborazione...