Freelancer: dcnielsen
Compartir:
Reportar entrada

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.

Participación en el concurso Nro.3 para                                                 python script to convert data
Participación Nro. 3

Tablero de aclaración pública

  • afterhourstech
    Organizador del concurso
    • 5 años atrás

    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 años atrás
    1. dcnielsen
      dcnielsen
      • 5 años atrás

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

      • 5 años atrás
  • dcnielsen
    dcnielsen
    • 5 años atrás

    Also, just confirmed it works with python 3.4.3

    • 5 años atrás
  • afterhourstech
    Organizador del concurso
    • 5 años atrás

    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 años atrás
    1. dcnielsen
      dcnielsen
      • 5 años atrás

      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 años atrás

Mostrar más comentarios Procesando...