Time series classification by complex network transformation